Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Sign up form Re: Sign up form

#75318
mshort1985
Member

@Bob, if i’m not mistaken the if statement is only checking to make sure there is actual data given in the fields and none are left blank.

you can check if something is true or not simply by doing something like
if($form_data) {

}

if theres nothing in the field, it will return false if theres something in it it will return true.

in the example ddliu gave, he had put !$form_data in the if statement, along with the other fields as well. the ! before it basicly means, if its not true, then do what ever is inside the if statement.