mathewvp
10-06-2003, 04:10 PM
Hi,
I am migrating from an older php version which is causing me a lot of problems.
I have a question answer form where the admin can enter five questions and 4 answers each and a radio group for each question for selecting the correct answer
For eg
Question1-textbox for question
Choice1 -text box with name choice1
Choice2 -text box with name choice2
Choice3 -text box with name choice3
Choice4 -text box with name choice4
Choice5 -text box with name choice5
Select the correct answer-radio box with name answer1 and these values
1)choice1 2)choice2 3)choice3 4)choice4 5)choice5
And once the form is submitted,I could find the answer that the admin selected using
$ans1=${$answer1};
and similarly for the answers for remaining questions
Now this doesn't work with newer version of php.So can anybody tell me how to solve this.
Thanks
I am migrating from an older php version which is causing me a lot of problems.
I have a question answer form where the admin can enter five questions and 4 answers each and a radio group for each question for selecting the correct answer
For eg
Question1-textbox for question
Choice1 -text box with name choice1
Choice2 -text box with name choice2
Choice3 -text box with name choice3
Choice4 -text box with name choice4
Choice5 -text box with name choice5
Select the correct answer-radio box with name answer1 and these values
1)choice1 2)choice2 3)choice3 4)choice4 5)choice5
And once the form is submitted,I could find the answer that the admin selected using
$ans1=${$answer1};
and similarly for the answers for remaining questions
Now this doesn't work with newer version of php.So can anybody tell me how to solve this.
Thanks