Re: Kinda silly question

From: Date: Thu, 14 Dec 2000 04:44:48 +0000
Subject: Re: Kinda silly question
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-4448@lists.php.net to get a copy of this message
Try changing the " after $PHP_SELF to ', that can mess all kinds of things up. Matthew At 11:43 AM 12/14/2000 +0700, you wrote:
Maybe this one is a silly question ... Could someone teach me about that damn $PHP_SELF ??? coz until now i can't get it work in anyway .. so i have to make a lot of pages. i mean like whenever i wanna use it, it gaves me an error ... ex: if ($comp) {
    bla bla bla
} else { echo "<form name='form' action='$PHP_SELF">"; echo "<input type='text' name='comp'>"; echo "<input type='submit' value='get it'>"; echo "</form>"; or echo "<form name='form' action='$PHP_SELF">"; echo "<input type='text' name='comp'>"; echo "<input type='submit' value='get it'>"; echo "</form>"; print "$comp"; It always said that : Warning: Undefined variable: comp in c:\homepage\modify.php on line 10


« previous php.windows (#4448) next »