You forgit the $ sign.  Should be

if(!$submit)

--
Gaylen
[EMAIL PROTECTED]
http://www.gaylenandmargie.com
PHP KISGB v1.2 Guestbook http://www.gaylenandmargie.com/publicscripts

"Peter" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> I was wondering does anyone know what this particular error message means:
>
> Warning: Use of undefined constant submit - assumed 'submit' in
> /usr/local/apache/htdocs/mm2/mymarket/privatedirectory/db/newthread.php on
> line 110
>
> But I already defined submit button as shown in the php script here:
>
> <center><input type=submit name=submit value="Enter your news">
>
> But for some reason when it goes to line 110 as shown just below, it says
> that it is undefined:
>
> if(!submit) {
>
> if(validate_input($name, $email, $subject, $message) == 0) {
>
>
> What should I check for?
>
> Thanks.
>
> Peter
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to