2.4  HTML2 - Processing Forms

Index Code Tester

OBJECTIVE

DISCUSSION

Processing Forms - Example 
<form action = "http://www.bigbadbrain.com/western/webform1.aspx" method = "post"></form>

Example

Simple and Crude Approach to Email Form Data

<form action = "MAILTO: abc@xyz.orc" method = "post" enctype="text/plain"></form>

EXERCISES

  1. Explain the difference between get and post.
  2. Create a page for submitting comments. Your page should submit your name, password and comments to the script file http://www.bigbadbrain.com/western/postcomments.aspx .  The page postcomments.aspx first checks your username and password; if valid your comment is added to the database and displayed.  MAKE sure that you do not share your username and password with anyone else.  The page webform1.aspx is expecting three parameters: username, password, and comment.   Keep in mind that you do not want your password to be exposed to anyone.  The page should have the following features:

3.  Save the form that you created in #2 as another page.  Then modify it so that the information is emailed to someone.  

LINKS AND HELP

http://www.davesite.com/webstation/html/chap17.shtml
http://www.w3schools.com/html/html_forms.asp