I would like guidance in getting started with HTML forms

DavidHannen
DavidHannen used Ask the Experts™
on
I am new to HTML I have created several .HTM pages which I will publish to IIS server. One page has 4 fields on it and 2 buttons;

 Name, Phone, Email, Comment, submit, reset.

I want to create a standard web contact form. Please can you point me in the direction of how to learn the method for this. In such cases does the data normally get posted as a text file to the server? Or does it get emailed? Am complete beginner on this but need to learn.

Thanks
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2008
Commented:
>> does the data normally get posted as a text file to the server? Or does it get emailed?

It's kind of a text file, but the server side script will usually have mechanisms for automatically parsing the data and split it into separate fields corresponding with the fields in your form. For instance in PHP, you would get variables like this if the form have method="post":

$_POST['Name'], $_POST['Phone'], $_POST['Email'] and $_POST['Comment'].

Read more about forms here:

http://www.w3schools.com/html/html_forms.asp
Commented:
Forms usually need to reference a cgi script which is normally provided by your web host (along with directions on how to set your form up). You would then set the form tag similar to
<form method="post" action="mailto:youremail@email.com">
...
</form>

there are plenty of tutorials around but one to get you started is
http://www.tizag.com/htmlT/forms.php
Commented:
For IIS, maybe you could find some usefull stuff here  :

http://www.tizag.com/aspTutorial/aspFormsPost.php

And if you want to receive an email :

http://www.tizag.com/aspTutorial/aspFormsEmail.php

Author

Commented:
Thanks. Loads of stuff there to get me started.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial