Re: error message

From: Date: Sat, 22 Sep 2001 17:35:48 +0000
Subject: Re: error message
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-68341@lists.php.net to get a copy of this message
You forgit the $ sign. Should be if(!$submit) -- Gaylen gfraley5@earthlink.net http://www.gaylenandmargie.com PHP KISGB v1.2 Guestbook http://www.gaylenandmargie.com/publicscripts "Peter" <php_guy@visors.com.hk> wrote in message news:Pine.LNX.4.21.0109230104030.31451-100000@ns.visors.com.hk... > 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 > >

« previous php.general (#68341) next »