Re: [PHP] Escaping Quotes in a String and Ending With A Quote

2002-03-19 Thread Dr. Shim
*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" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Are you inside a function, having negl

Re: [PHP] Escaping Quotes in a String and Ending With A Quote

2002-03-19 Thread Miguel Cruz
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" <[EMAIL PROTECTED]> wrot

Re: [PHP] Escaping Quotes in a String and Ending With A Quote

2002-03-19 Thread Dr. Shim
Strangley enough, $PHP_SELF is empty. Nothing appears when I do it the way Bob and you suggested, the "action" property equals "". "Miguel Cruz" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Tue, 19 Mar 2002, Dr. Shim wrote: > Hmmm. How about this? > > echo

Re: [PHP] Escaping Quotes in a String and Ending With A Quote

2002-03-19 Thread Miguel Cruz
On Tue, 19 Mar 2002, Dr. Shim wrote: > Hmmm. How about this? > > echo " . "\">"; 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 ''; miguel -- PHP General Mai

Re: [PHP] Escaping Quotes in a String and Ending With A Quote

2002-03-19 Thread Bob
You need to remove the second echo. On Tue, 19 Mar 2002, Dr. Shim wrote: > Hmmm. How about this? > > echo " . "\">"; > > > "Miguel Cruz" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Tue, 19 Mar 2002, Dr. Shim wrote: > > Well, this is a fairly simpl

Re: [PHP] Escaping Quotes in a String and Ending With A Quote

2002-03-19 Thread Dr. Shim
Hmmm. How about this? echo ""; "Miguel Cruz" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Tue, 19 Mar 2002, Dr. Shim wrote: > Well, this is a fairly simple problem. I'm having problems with escaping a > string, and then ending the string right after the e

Re: [PHP] Escaping Quotes in a String and Ending With A Quote

2002-03-19 Thread Miguel Cruz
On Tue, 19 Mar 2002, Dr. Shim wrote: > Well, this is a fairly simple problem. I'm having problems with escaping a > string, and then ending the string right after the escape! For example, > > echo "Then Johnathan said, \"That's exactly what I said!\""; > > I get a parse error on the line where t

[PHP] Escaping Quotes in a String and Ending With A Quote

2002-03-19 Thread Dr. Shim
Well, this is a fairly simple problem. I'm having problems with escaping a string, and then ending the string right after the escape! For example, echo "Then Johnathan said, \"That's exactly what I said!\""; I get a parse error on the line where the string is. Very simple problem, I just can't s