You are here: $_GET works, $_POST doesn't « PHP Programming Language « IT news, forums, messages
$_GET works, $_POST doesn't

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");
}
}
}

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация