Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • HTML Forms - Submit and Reset Button

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 599
    Comment on it
    <html>
    <head><title>myForm</title><head>
    <body> 
    <form action = "example.com" method="Post">
    First Name:
    <input type = "text" name = "firstname" />
    Last Name:
    <input type = "text" name = "lastname" />
    <input type = "submit" value = "submit" />
    <input type = "text" value = "Reset" />
    </form>
    </body>
    </html>
    

    HTML Forms are required when you want to collect some data from the site visitor. HTML Forms are required when you want to collect some data from the site visitor. For example registration information: name, email address, credit card, etc. A form will take input from the site visitor and then will post your back-end application such as CGI, ASP Script or PHP script etc. Then your back-end application will do required processing on that data in whatever way you like. Form elements are like text fields, textarea fields, drop-down menus, radio buttons, checkboxes, etc. which are used to take information from the user.

    The INPUT element defines an input field. When you specify "submit" (or "reset") for the type attribute of this element, a submit button (or a reset button) is created.

    type = "submit" Creates a submit button on the form. When this button is clicked, the form data is submitted to the server.

    type = "reset" Creates a reset button on the form. When this button is clicked, the input is reset.

    name = "" The button name is used to identify the clicked submit button.

    value = "" Value is the text displayed on the button.

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: