RE: [PHP] error message
| From: | Mark Roedel | Date: | Sat, 22 Sep 2001 19:20:50 +0000 |
| Subject: | RE: [PHP] error message | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-68352@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Peter [mailto:php_guy@visors.com.hk]
> Sent: Saturday, September 22, 2001 12:10 PM
> To: php-general@lists.php.net
> Subject: [PHP] error message
>
>
> 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/newt
> hread.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) {
Try changing this to
if (!$submit) {
---
Mark Roedel | "Blessed is he who has learned to laugh
Systems Programmer | at himself, for he shall never cease
LeTourneau University | to be entertained."
Longview, Texas, USA | -- John Powell