Re: Escaping Quotes in a String and Ending With A Quote
| From: | Dr. Shim | Date: | Wed, 20 Mar 2002 02:51:04 +0000 |
| Subject: | Re: Escaping Quotes in a String and Ending With A Quote | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-89270@lists.php.net to get a copy of this message | ||
*screams, "I'm such a newbie!!"*
I didn't know I had to declare $PHP_SELF with "global" before using it
inside a function. Sorry! Works now! Thanks very much! =)
"Miguel Cruz" <mnc@stoic.net> wrote in message
news:Pine.LNX.4.44.0203192045400.16870-100000@stoic.net...
Are you inside a function, having neglected to do
global $PHP_SELF;
?
miguel
On Tue, 19 Mar 2002, Dr. Shim wrote:
> Strangley enough, $PHP_SELF is empty. Nothing appears when I do it the way
> Bob and you suggested, the "action" property equals "".
>
> "Miguel Cruz" <mnc@stoic.net> wrote in message
> news:Pine.LNX.4.44.0203192037380.16870-100000@stoic.net...
> On Tue, 19 Mar 2002, Dr. Shim wrote:
> > Hmmm. How about this?
> >
> > echo "<form name=\"frmMovies\" method=\"post\"
> > action=\"" . echo
> $PHP_SELF
> > . "\">";
>
> You're concatenating "echo $PHP_SELF" rather than just $PHP_SELF, which
> isn't necessarily helping. But just between me and you, life would be a
> lot easier if you simply did:
>
> echo '<form name="frmMovies" method="post" action="' .
> $PHP_SELF . '">';
>
> miguel
>
>
>
>
>