PDA

View Full Version : HTML Forms



deanb
Thu 20th Jul '00, 9:03pm
i want to make a form that i can fill out then click submit and it will make a page depending on how i filled out the form EG:

i have a form with 3 fields

To.........
From........
E-Mail.......

then when i fill out those fields it will make a page without text fields just text (if u have no idea what i mean i don't blame u!)

can u guys help??

DeanB

:)

JimF
Fri 21st Jul '00, 1:37am
In php, this is as easy as, well, anything.

Your form page would consist of the following lines:



<form action="my_form.php" method="post">
<input type="text" name="to">
<input type="text" name="from">
<input type="text" name="email">
</form>


Then you would make a file called my_form.php as referenced above with the following code:



<?
echo = "$to";
echo = "$from";
echo = "$email";
?>


That is very rough - but I think you can figure out the general principle. I don't thunk this is possible using straight HTML - since HTML doesn't have variable tracking capabilities. FYI-it would be similar in Perl.

-jim