Jump to content

[SOLVED] whats wrong with isset(button)


Eggzorcist

Recommended Posts

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>

 

Link to comment
https://forums.phpfreaks.com/topic/181777-solved-whats-wrong-with-issetbutton/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.