html - Why this submit action dont work with php isset? -
i have code, html register php action when press submit button
<html> <head> <title>pruebas de registro </title> </head> <body> <h1 align="center"> formulario de registro </h1> <form align="center" method="post"> <p>user: <input type="name" name="user"></input> </p> <p>pass: <input type="password" name="password"> </p> <p>rpass: <input type="password" name="password2"> </p> <input type="submit" name="submit" value="ok"> </input> <input type="reset" value="reset"></input> </form> <?php if (isset($_post['submit'])) { echo "has presionado submit" } ?> </body> </html>
why when press "ok" submit botton php dont me "has presionado submit" isset?
thanks!
you have syntax error in if condition forgot wrote ; after echo statement
Comments
Post a Comment