Geocities Webpage Creator (HTML)/form

Advertisement


Question
Hi,

I want to make a form in my website (HTML). I want people to fill out some information and they click "send" and the information will arrive in my email box.

Thank for your time.

Answer
Well, here is the code to make your form:

<FORM action="http://www.someserver.com/anydirectory/scriptname" method="post">
   <P>
   <LABEL for="field1">Field1: </LABEL>
             <INPUT type="text" id="field1"><BR>
   <LABEL for="Field2">Field2: </LABEL>
             <INPUT type="text" id="Field2"><BR>
   <LABEL for="Field3">Field3: </LABEL>
             <INPUT type="text" id="Field3"><BR>
   <INPUT type="submit" value="Send"> <INPUT type="reset">
   </P>
</FORM>

However, you can store the information of this form in an output file and can display it in HTML. To get the information in your mail, you have make changes in your script program refered in "action" attribute to import the information into the mail. This script can be in CGI, ASP, or Perl etc.

In form, you can process your data using two method: get or post. These are to be given for attribute value of method of form element. Forms do not provide the facility to get the data in mail directly as it is possible with element anchor by using "mailto" function.

I hope this might have cleared your doubts.

Enjoy...

Geocities Webpage Creator (HTML)

All Answers


Ask Experts

Volunteer


Ashok Kumar

Expertise

I have an experience of around five years in the field of Data Conversion involving SGML and HTML. I will try to answer all your queries.

Experience


Experience of more than
6 years

©2012 About.com, a part of The New York Times Company. All rights reserved.