HTML Post Tutorial

When you create Internet forms using HyperText Markup Language (HTML), "post" is one of the submission methods that sends the submitted data to a processing agent before it is delivered to you. As opposed to "get," the "post" option has several advantages. For example, "post" does not have a restriction on how much data can be submitted, while "get" does. Even more, if you expect to receive sensitive data in a form message, such as a telephone number, "post" is the most secure option. Using your text editor application, use "post" in your next HTML form.

Instructions

    • 1

      Launch your text editor application and create a new page.

    • 2

      Enter the "<form>" tag that begins an online form.

    • 3

      Type the "method" attribute inside the "<form>" element and assign this to "post" as follows:

      <form method="post">

    • 4

      Enter an "action" attribute and assign this to a script that processes the form data and sends it back to you. Use a form script from your web host provider or download a file from a free, Internet resource like Stadtaus.com or Hot Scripts (see Resources). Type in your script as follows:

      <form method="post" action="http://www.domain.com/cgi-bin/example.cgi">

    • 5

      Type in the remainder of your form code and enter a closing "</form>" tag at the end. For instance:

      <form method="post" action="http://www.domain.com/cgi-bin/example.cgi">
      Example Form Prompt <input type="text" name="example" /><br />
      <input type="submit" value="Submit" />
      </form>

    • 6

      Save your file with an ".html" ending (extension). Place your HTML document and form script on your web host in the same directory or folder where you keep your other website files.

Related Searches:

References

Resources

Comments

You May Also Like

Related Ads

Featured