Hi, I am fairly new to PHP and I am trying to make a 3 part form for my webdesign/hosting/domain registration place.
You start off at step1 signup and you enter info such as name, email, address, phone number and so on.. You then select whether you need web design, hosting, or maintenance. Then you press "continue" and it will take you to part 2... now I want part 2 to be dependant on what they selected in part one for the "Services" ... for example, they select web design, it will go to a second form about web design.. after they've filled that one out i want them to be able to press "continue" and view all the information that they have entered BEFORE they press submit.. I want them to be able it to be listed like:
"Name: [the name they entered]}
Email: [the email they entered]
is this info correct? if so press submit, blah blah blah.. you get the idea"
(i basically know how to do that... just by echoing the variables... but i want to know how to be able to list ONLY the stuff that they entered, (some things are optional, such as [phone]. If i make a list like this:
<?php
echo "Phone number: $phone";
?>
then if they didnt enter the phone number it will say "Phone: "... is there any way that i can just get it to completely take the phone out of the list if they didnt put it in?
All this while, I want the info that they have entered in the other signup pages to be passed through the pages somehow...
Do you guys understand what I mean? I made it pretty confusing.. but then again, I am pretty confused myself. I'm not sure how I would do this... I know how to make a form that sends to email... but i dont know how to make it so that it determins which page to go to, depending on the option they selected... and i also dont know how to make the data from the first page pass through to the next 2 pages. And.. i dont know how to make it display only the things which the person has entered.
Any help? Please?!
Thanks in advance.
Dylan