dazz_club Posted October 13, 2006 Share Posted October 13, 2006 hi people,when completing a form and it says to click to the next page, and it presents new set of input fields to complete and then on the next page some more fields and then at the bottom of the form theres a submit button,to click once everything has all benn filled in.my question is what code does it use to pass the previous completed forms details to the next and then be submitted?is it using something like "GET_$variablenamehere" in the following pages until the last page which allows the user to submit the completed form?hope you understand what i mean.cheers Link to comment Share on other sites More sharing options...
reportingsjr Posted October 13, 2006 Share Posted October 13, 2006 nonono . The GET method just means the variables get stored in the URL: e.g. http://domain.com/?variablename=something, then to get the vairable from the url you do this:$_GET['variablename']You would need to put each variable you want into the forms action and have the method be GET until the last for, you would want to have hidden fields on the last one and use the post method . Link to comment Share on other sites More sharing options...
dazz_club Posted October 13, 2006 Author Share Posted October 13, 2006 lol, i think i get it now, im gonna post back with what i think is right, cheers for your help!! Link to comment Share on other sites More sharing options...
justsomeguy Posted October 14, 2006 Share Posted October 14, 2006 The easiest way is to use hidden fields like he mentioned:<input type="hidden" name="whatever" value="<?php echo $_POST['whatever']; ?>"> Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now