[thelist] php: problem with variable
Mark Howells
mark at mountain.ch
Wed Jan 23 08:44:46 CST 2002
> If (!$submit)
> {...print form
>
> but I was getting undefined variable errors. So I changed it to:
>
> If (!defined('$submit'))
> {...print form
Have you defined a name / id and value for the submit button? $submit
will be "" if it has no value defined, which leads PHP to return false
if you use if (!$submit){ ... }.
<input id="submit" type="submit" value="Submit this form" />
Regards
Mark Howells
<http://www.mark.ac/evl>
More information about the thelist
mailing list