$myRes = mysql_fetch_row($result);
foreach($myRes as $myPass);
if ($myPass == $password){
...to this:
$myRes = mysql_fetch_row($result);
if($myRes['password'] == $password){
...A useful debugging technique would be to comment out the redirects and instead echo something useful (i.e. echo 'submitted value: ['.$password.'] database value: ['.$myRes['password'].']';).
That way you can verify that the values are what you think they are.
Also, make sure your form is truly submitting to the page you think it's submitting to. Given that it does some of the redirects appropriately, I don't think that's the problem, but it doesn't hurt to double check.
_________________________________________________________________
Frustrated with dial-up? Get high-speed for as low as $29.95/month (depending on the local service providers in your area). https://broadband.msn.com
_______________________________________________ newbies mailing list [EMAIL PROTECTED] http://phantom.byu.edu/cgi-bin/mailman/listinfo/newbies
