This is the first program I am writing using PHP and Mysql. I am
creating a game where user thinks of an object and my program
guesses the object while asking series of yes/no questions. All a
user has to do is say yes or no to the questions that my program
asks. I have coded until the part where once user thinks of an
object and enters submit and the program asks him the first
question. Now when the user enters yes/no for this first quesiton I
want to display the same form again but with next question. I know
which question to ask but don't know two things:
1. how to make the same form appear again with different question.
In the form action I have tried calling the same form again and also
tried using PHP_SELF but both doesnot seem to work.
2. how to store the previously asked question in an array that can be
read later in the program when the next question is asked.
creating a game where user thinks of an object and my program
guesses the object while asking series of yes/no questions. All a
user has to do is say yes or no to the questions that my program
asks. I have coded until the part where once user thinks of an
object and enters submit and the program asks him the first
question. Now when the user enters yes/no for this first quesiton I
want to display the same form again but with next question. I know
which question to ask but don't know two things:
1. how to make the same form appear again with different question.
In the form action I have tried calling the same form again and also
tried using PHP_SELF but both doesnot seem to work.
2. how to store the previously asked question in an array that can be
read later in the program when the next question is asked.
Comment