Been searching all day could someone help with forms plz?
Posted: Fri Aug 18, 2006 6:56 pm
Ok ive been trying to find the best solution for passing variables from one page to another all day.
Ive seen the use of hidden fields being implented with a while loop in php. I have gotten this to work but it seems like a lot of extra code being generated.
Is this the best way to do it? Or can i use a $_REQUEST to get them?
The reason i ask is because i have a couple large forms that need to be validated. The form uses the POST method and sends the variables to another page to be validated and displayed so the user can double-check if all is correct.
Then i need the variables to be passed to a terms/conditions page and held there kinda in limbo until the agree box is checked and the account is created by posting them to a MySQL DB.
What is the best way to accomplish this?
Should i have the form post to itself for validation then onto to terms page so im only passing them to one additional page?
Or is there a way to post the variables to the DB after validation and then if the terms are agreed upon delete them back out?
Any suggestions would be greatly appreciated?
Ive seen the use of hidden fields being implented with a while loop in php. I have gotten this to work but it seems like a lot of extra code being generated.
Is this the best way to do it? Or can i use a $_REQUEST to get them?
The reason i ask is because i have a couple large forms that need to be validated. The form uses the POST method and sends the variables to another page to be validated and displayed so the user can double-check if all is correct.
Then i need the variables to be passed to a terms/conditions page and held there kinda in limbo until the agree box is checked and the account is created by posting them to a MySQL DB.
What is the best way to accomplish this?
Should i have the form post to itself for validation then onto to terms page so im only passing them to one additional page?
Or is there a way to post the variables to the DB after validation and then if the terms are agreed upon delete them back out?
Any suggestions would be greatly appreciated?