Forum Moderators: coopster
Could anyone shed some light on this for me please.
I have the following IF AND statement and it seems to be having issues with at least one of the checks.
if (true == $input_name && true == $input_email && true == $input_con_email && true == $input_pwd && true == $input_con_pwd && true == $input_first && true == $input_last && true == $input_tel && true == $input_club)
the one that is not evaluating properly is the $input_pwd even when it is false the statement still carries out the first set of code, if i change $input_name to false directly then the code executes the second set of code.
I know that $input_pwd is false as at the moment I am echoing before the if and inside it as well.
edit to add following
I just thought I would add I have tried this using the follwoing also to see if that works, and to try and make the code easier to read
[code]
if (true == $input_name && input_pwd && rest of variables)
[edited by: MrWhippy at 10:52 am (utc) on Mar. 4, 2009]
if (true == $input_pwd) {
print '$input_pwd is true';
} else {
print '$input_pwd is false';
}
var_dump($input_pwd);
if (true == $input_name && true == $input_email && true == $input_con_email && true == $input_pwd && true == $input_con_pwd && true == $input_first && true == $input_last && true == $input_tel && true == $input_club)
thanks for the confirmation that it should let me know what is going on.
Thanks for your help on my other post as well, even though that one was a typo i dont believe this one to be so. (hence the reason i copied and pasted the code in)
Ill let you know how i get on