You said
Quote:
"How do I pass all of my created variables (its a lot of em) to the next php page without a whole lot of hassle?"
|
Glib answer is:
Dont let them off the page (client-side) until they confirm the details.
Use javascript confirm box, list their replies - this then automatically has OK / Cancel buttons.
try javascript.internet.com - check out what users are doing there (search for "confirm")
Using a back button is bad news with php, you will have users accidently going back and forth creating duplicate entries in your dbase. Mostly I dissallow going back by stopping cacheing of the page.
Another way is to add the entry into the db (server-side) and instead of back/forward buttons display their input back into a form again (not just echo'd onto the page) - thus allowing them to edit/return to start. If you are clever you will re-use the original form. (I'm not that clever)
Theres lots of other ways..
Depends on your app - this is all standard stuff - I would advise you buy a good book that takes you through all the options though.
I like the js way because it is easier for the user - stay on the page, immediate feedback, do some basic validation too.
Ideally you would do both client and server side - though server side I use mainly to sanitise the incoming vars.
Paul