View Single Post

  #2 (permalink)  
Old 05-23-2006
Sjoerd
 
Posts: n/a
Default Re: Hard form validation issue

John wrote:
> What's wrong with my
> nice newbie-code? Here it is:


This is wrong:
> if(strcmp($_POST['check'],"") !="yes"))


These are correct:
if (0 == strcmp($_POST['check'], "yes"))
if ($_POST['check'] == "yes")
if (empty($_POST['check'])

Reply With Quote