DOH!
Posted: Mon Jul 05, 2004 3:55 am
Just posting to see what the most annoying error/problem you had was and how long it took to solve. Mine recently happend when i was checking 2 POST variables like this :
When only one variable was set "data entered" would be shown. It took me 4-5 days(after skating around the problem and coding something else ) before i realised what was wrong. I guessed that the POST variable must be setting some nullbyte value which isset would actually identify. A quick change to is_empty and I was done 
Code: Select all
<?php
if(!isset($_POST['uname']) && !isset($_POST['pass']))
{
//FORMS
}
elseif(!isset($_POST['uname']) || !isset($_POST['pass']))
{
echo "Not all data entered please check";
}
elseif(isset($_POST['uname'] && isset($_POST['pass']))
{
echo "Data entered";
}
?>