PDA

View Full Version : how would i start this?


younghistorians
Wed 19th Nov '03, 7:05pm
Hi all, Im looking to have all the following on one script (action.php). Basically, this will be a step by step form. It starts off asking what your name is. When they click the next link, it goes to another part where it asks for your age...etx. After all of this, when they click submit, all the results are emailed to my admin address. I want to set it up so all of this is on one script. Any help is greatly appreciated...I just need alittle help starting out. thanks!

qxh
Thu 20th Nov '03, 12:10pm
The easiest way would be to make an HTML form with all the fields and a submit button, then create a script called send.php using the PHP mail() function. http://www.php.net/mail. You could also put the form and php into one file, though that'd involve a little more coding.