Re: Kinda silly question

From: Date: Thu, 14 Dec 2000 04:57:22 +0000
Subject: Re: Kinda silly question
References: 1  Groups: php.db php.windows 
Request: Send a blank email to php-db+get-5231@lists.php.net to get a copy of this message
DEWA: Try: if (isset($comp)) { instead of if ($comp) { also change the double-quote to single-quote in: echo "<form name='form' action='$PHP_SELF">"; this one __| Saludos, Pablo Vera _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Wednesday, December 13, 2000, 10:43:51 PM, DEWA wrote: D> Maybe this one is a silly question ... D> Could someone teach me about that damn $PHP_SELF ??? D> coz until now i can't get it work in anyway .. so i have to make a lot of pages. D> i mean like whenever i wanna use it, it gaves me an error ... D> ex: D> if ($comp) { D> bla bla bla D> } else { D> echo "<form name='form' action='$PHP_SELF">"; D> echo "<input type='text' name='comp'>"; D> echo "<input type='submit' value='get it'>"; D> echo "</form>"; D> or D> echo "<form name='form' action='$PHP_SELF">"; D> echo "<input type='text' name='comp'>"; D> echo "<input type='submit' value='get it'>"; D> echo "</form>"; D> print "$comp"; D> It always said that : D> Warning: Undefined variable: comp in c:\homepage\modify.php on line 10

« previous php.db (#5231) next »