Passing a string from one page to another.
Posted: Thu May 25, 2006 3:30 pm
Hi. I hope someone can help.
This is propably a no brainer.................
I am trying to create a multipage form......ie............first page has first 6 questions and click to continue. Second page has more questions, and so on until you reach page five which shows summary of answers then allows a submit button to post all answers to database.
The database parts I have no problem with, but the passing between pages is giving me grief.
For one has the first 6 form items in them, I post these using the standard post method to a new php, which then retrieves these variables. Within the form on the second page I add hidden form fields representing the asnwers for page 1 and set the values as the retrieved variables.
The problem I am having is that when I get to the final page, I am again retrieving the variables, but for some reason when I try and echo the values, if a vairable contains more than one word, I still only get the first word in the string.
Why is this?
How can I stop this?
Thanks in advance.
Cosarin
This is propably a no brainer.................
I am trying to create a multipage form......ie............first page has first 6 questions and click to continue. Second page has more questions, and so on until you reach page five which shows summary of answers then allows a submit button to post all answers to database.
The database parts I have no problem with, but the passing between pages is giving me grief.
For one has the first 6 form items in them, I post these using the standard post method to a new php, which then retrieves these variables. Within the form on the second page I add hidden form fields representing the asnwers for page 1 and set the values as the retrieved variables.
The problem I am having is that when I get to the final page, I am again retrieving the variables, but for some reason when I try and echo the values, if a vairable contains more than one word, I still only get the first word in the string.
Why is this?
How can I stop this?
Thanks in advance.
Cosarin