help making a form
-
- Posts: 37
- Joined: Mon Sep 12, 2005 7:43 am
Preview Data
Or you can do a PHP script that previews everything before they send it to you....
On the first page (place where data is being entered):
<form method='post' action='preview.php'>
[Form stuff here]
</form>
and on the Second page, you put this code in the same table but replace the textboxes with the following:
echo $_POST['field_name'];
and that is it....
On the first page (place where data is being entered):
<form method='post' action='preview.php'>
[Form stuff here]
</form>
and on the Second page, you put this code in the same table but replace the textboxes with the following:
echo $_POST['field_name'];
and that is it....
-
- Posts: 14
- Joined: Sun Sep 18, 2005 12:05 am
- Contact:
-
- Posts: 9
- Joined: Fri Dec 30, 2005 4:41 pm
is that your code?? umm are you like trying to make an email form, where people fill it out send it and the form gets sent to your email (or wherever you want it to go)?? i think bravenet (http://www.bravenet.com) gives a free tutorial...**** on the email forms icon and i think you have to install it and stuff, but they have a tutorial on how you can make a form all by yourself ^_^ it's not that hard, they're really good
-
- Posts: 35
- Joined: Mon Jan 16, 2006 2:56 am
-
- Posts: 504
- Joined: Sat May 07, 2005 8:03 am
- Contact:
-
- Posts: 40
- Joined: Sat Mar 25, 2006 5:00 am
Here is a very basic and easy form:
<FORM ACTION="../cgi-bin/mycgi.pl">
name: <INPUT NAME=realname>
email: <INPUT NAME=email>
subject: <INPUT NAME=subject>
Comments and Questions: <INPUT NAME=comments and questions>
<INPUT TYPE=SUBMIT><form action="mailto:youre-mailAddress@whatever.com?"</FORM>
In the part where it says your email address, you type in the email address in which you want the form to be sent to.
<FORM ACTION="../cgi-bin/mycgi.pl">
name: <INPUT NAME=realname>
email: <INPUT NAME=email>
subject: <INPUT NAME=subject>
Comments and Questions: <INPUT NAME=comments and questions>
<INPUT TYPE=SUBMIT><form action="mailto:youre-mailAddress@whatever.com?"</FORM>
In the part where it says your email address, you type in the email address in which you want the form to be sent to.
Re: help making a form
For your basic input boxes (single line input):
For your textarea (multi line input):
Code: Select all
<input type="text" name="name" size="30">
Code: Select all
<textarea name="comment" rows="6" cols="40"></textarea>