Hello,
Following is my code. As I press the 'submit' button I expect the form to reload itself. But I get an error message saying that I don't have access to the page. Please help.
Following is my code. As I press the 'submit' button I expect the form to reload itself. But I get an error message saying that I don't have access to the page. Please help.
Code:
<html> <head> <title> Subscribe/Unsubscribe </title> </head> <body> <form action = "<?php echo $_SERVER[PHP_SELF] ?>" method = "POST" > <h1> Subscribe/Unsubscribe </h1> <p><strong> Action: </strong><br> <input type = radio name = "action" value = "sub" checked> subscribe <input type = radio name = "action" value = "unsub"> unsubscribe <p><input type = submit name = "submit" value = "Submit Form" </form> </body> </html>
Comment