Eggzorcist Posted November 16, 2009 Share Posted November 16, 2009 I'm not quite sure what's wrong here, I've tried a few alternatives but it seems like hardly of them are working... Could someone help me out, the isset isn't working... <?php require_once('functions.php'); if(isset($_POST['login'])){ login_user($_POST['login_email'], $_POST['login_pass']); } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Login</title> </head> <body> <div id="login_error"></div> <form id="login" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>"> <label>E-Mail: <input type="text" name="email" id="login_email" /> </label> <label>Password: <input type="password" name="password" id="login_pass" /> </label> <input type="button" name="login" value="login" id="Login" /> </form> </body> </html> Quote Link to comment Share on other sites More sharing options...
Vebut Posted November 16, 2009 Share Posted November 16, 2009 Your submit button should be of type "submit" and not "button". Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.