Posted by Melih Onveral on 02/02/08 06:03
I'm having a very bizarre situation. I have a log-in form. When I use
$_GET, the values are passed, and everything seems to work. When I use
$_POST nothing is passed, and obviously nothing works. I have
absolutely no idea where to even start. Any help would be greatly
appreciated. Thanks,
--
Melih
Here is the code:
<form name="memberLogin" method="post" action="/myAccount/login.php">
<input name="email" type="text" class="formfield" id="email"
size="19" value="<?php if(isset($_COOKIE['e'])) echo
base64_decode($_COOKIE['e']); else echo "";?>" />
<input name="pass" type="password" class="formfield" id="pass"
size="19" />
<input name="remember" type="checkbox" id="remember"
checked="true" />
<input type="image" name="imageField" src="/_images/buttons/
login.gif" />
</form>
if (isset($_POST['email')){
echo "email exists\n";
$pass = $_POST['pass'];
$exists = mysql_query("select * from mem where email = '$email';");
$user = mysql_fetch_array($exists);
$stopass = $user['pass'];
if ($stopass == $pass){
$remember = $_POST['remember'];
include("/mnt/gs02/herd03/29557/domains/horseonality.net/_include/
cookiecreate.inc");
}
}
}
[Back to original message]
|