Re: Kinda silly question
| From: | Zak Greant | Date: | Thu, 14 Dec 2000 04:51:56 +0000 |
| Subject: | Re: Kinda silly question | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-4450@lists.php.net to get a copy of this message | ||
Matthew Ballard wrote:
> Try changing the " after $PHP_SELF to ', that can mess all kinds of things
up.
> Matthew
Good point - however, from the error message that DEWA has listed, it looks
like the parser is not even reaching those lines before it encounters an
error condition.
--zak
>
> 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
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
> For additional commands, e-mail: php-windows-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>