You betcha! however you might wanna make sure and wait for another member here to confirm this as I am not completely sure. Better yet, why don't you email the iPage guys because they can give you help better...
POST the answers from the first 20 questions to the next page, and put the values into.
Form inputs for the, which are then submitted with the next submit...
Um...I'm kinda new to php. Do you mean I can make the "hidden" changes in my index.html page, without changing the code in the .php page? Below is the end of the code in the index page. So, um...could you explain the steps a little more? Thanks..
...the combinations and mutations of the clock genes. Some gene mutations.
The life of the worm by 400%..
<input type=reset value=Clear>.
You need to send the first set of options to a php page, which takes the 20 values from $_POST, and uses that to create a second page with the next 20 questions..
In the form for that, though, you can write a set of "hidden" inputs with the first 20 settings to pass onto the third page. The same thing happens there to get all 20 to the final page..
You can use the same PHP file, by using another parameter to say at which stage the user is at, again passed as a hidden value (which needs to be included in the original twenty questions)..
A hidden value is put in a form as follows:.
<input type='hidden' value='whatever' name='something_useful'>..
But if you let the user choose the number of questions he wants to see how can you do that?.
Sorry I am new too at PHP..
Well, in that case, you keep passing the number of questions that the user requested, showing 20 on each page, and keep going until you have shown enough pages..
You are already keeping track of the number of pages you have displayed...
Sorry,couldn't quite folow that advice. Below are all the relevant parts of the code from index.html and from the .php page. Any chance you could indicate exactly where and what code I have to enter (to make the 3 seperate pages, putting a "next" button at the end of the first 2 and the submit at end of 3rd. thank you..
(code from index.html)....
<OPTION value=B>you did.
<OPTION value=C>did you eat.
<OPTION value=D>ate you.
3 sandwiches at 7am this morning?".
<OPTION value=A>looking forward to.
<OPTION value=B>looking forward.
<OPTION value=C>to look forward.
<OPTION value=D>look forward to.
Hearing your explanation. </p>.
The life of the worm by 400%..
(code from .php page).
(questios 1,2,3 etc.etc....).
If ($_POST["question20"]=="C") $score++;.
If ($_POST["question40"]=="D") $score++;.
If ($_POST["question60"]=="D") $score++;.
Echo $score." answers correct ".$scorema." .";.
// Mail things.
I know I said I would help you out, but I just not had time..
I got hit with an impossible deadline thanks to the contracts guys not doing their jobs here. Hopefully someone else can help you out - if not I will be back in about a week..
If you PM to remind about this thread (don't send the question) NEXT friday, I'll try and have a look for you...
Pater, you have to split that html up into 3 pages..
That is the easiest way. you show 20 questions on the first page and it goes to a second php page with the next 20. in this second page you keep the answers they had to the first page in hidden form fields or a database or session. which ever one you prefer..
So you have 3 different php pages with 20 questions apiece..
What you showed will not help anybody out as it is incomlete...
Thanks for all the help guys. I'm still learning about CSS etc. and hope to try your advice soon..