I did the php code with two buttons in 1st php file.Now i am trying to do in another php file, by clicking the button one seperate form is to be open and by clicking the other button another seperate form is to get open. But i dont know how to do this.
<input type="submit" name="question" value="question" />
<input type="submit" name="answer" value="answer" />
please tell me how to do this.
Method 1
Method 2
If your using a single file then keep a hidden variable on form and check the variable value on the next page and take nessery action.
ex:
a.php
I dont know if there is any bettr method, but you can solve like this