Hey guys, I am having a serious issue here that is really pulling the hair from my skull. I have a very simple login page, that just requires a password to submit the form, and the code works conditionally.
1) Always, in Firefox.
2) Always, in Safari.
3) In Internet Explorer, if you PASTE the text into the field, the form will work.
Typing the text into the form does not work. Weird, I know.
Guys, I am TOTALLY stumped here, and this could cost me my reputation and ego with a client. I am a n00b rookie, I will own that.
Please help!
Btw:
The HTML Form:
[code=html]
Admin Login:
<form action=”<?php echo $_SERVER[‘PHP_SELF’]; ?>” method=”post”>
<fieldset style=”border:none;width:200px;margin:auto;”>
<input type=”password” name=”password” size=”15″ />
<input type=”submit” name=”submit” id=”submit” value=”Sign In” />
</fieldset>
</form>
And the PHP Code:
[code=php]
<?php
require_once(‘includes/config.php’);
if($_POST[‘submit’]) {
//print_r($_POST);
if(strcmp($_POST[‘password’],’keyvox4u’) == 0) {
//print ‘Success!’;
$_SESSION[‘login’] = true;
header(“Location:http://www.keyvox.com/storefront.php”);
} else {
//print ‘Fail!’;
$_SESSION[‘login’] = false;
unset($_POST[‘submit’]);
header(“Location:http://www.keyvox.com/”);
}
}
require_once(‘includes/head.inc.php’);
?>
Please help me!
Pierce