Re: PHP_SELF Undefined
| From: | Brad Hubbard | Date: | Tue, 19 Feb 2002 10:08:55 +0000 |
| Subject: | Re: PHP_SELF Undefined | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-85372@lists.php.net to get a copy of this message | ||
On Tue, 19 Feb 2002 09:50, Narvaez, Teresa did align ASCII characters thusly:
> When I execute the code below, why is PHP_SELF undefined? I will appretiate
> any help on this. I can get its value by:
> echo $_SERVER["PHP_SELF"]; Thanks in advance! -Teresa
>
>
> <HTML>
> <HEAD>
> <TITLE>Feedback</TITLE>
> </HEAD>
> <BODY>
> <?
> $form_block = "
> <FORM method=\"POST\" action=\"$PHP_SELF\">
> <P>Your Name:<br>
>
> <INPUT type=\"text\" name=\"sender_name\" size=30></p>
> <P>Your E-Mail Address:<br>
> <INPUT type=\"text\" name=\"sender_email\" size=30></p>
>
> <P>Your Message:<br>
> <textarea name=\"message\" cols=30 rows=5></textarea>
> </p>
>
> <P><INPUT type=\"submit\" value=\"Send This Form\"></p>
>
> </FORM>
>
> ";
>
> ?>
I don't know whether this is of any help to you or not, but this works
perfectly on my system. I suspected it would as I saw nothing wrong, per se,
with the code.
Cheers,
Brad