----- Original Message ----- From: "Tedit kap" hello, what i am trying to do is, after hitting the submit button in a form, the questions and the submit button should disappear and at the same place the results should show up. right now the form is posting to another page, which i dont know how to display at the same location of the form. i tried posting the form to itself but all it does is, it still continues to display the questions after submitting. please help.
------------------------------------ PHP method - <?php if(!isset($_POST['submit']) {?> <html> <head> <title>Questions page</title> </head> <body> <form action="<?php echo($_SERVER['PHP_SELF']; ?>" method="POST"> What color roses do you like: <input name="roses" type="text"><br /> <input name="submit" type="submit" value="Send them on"> </form> </body> </html> <?php die(); } if($_POST['roses'] == "red") {?> <html> <head> <title>Answer page</title> </head> <body> I love red roses to </body> </html> <?php } ?>