Re: [PHP4BETA] re:ereg_replace
| From: | Joseph H Blythe | Date: | Wed, 15 Mar 2000 02:57:26 +0000 |
| Subject: | Re: [PHP4BETA] re:ereg_replace | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-12136@lists.php.net to get a copy of this message | ||
David Robley wrote:
> Also, check your magic-quotes-gpc setting in the ini file. Turning it on
> should, I think, correctly escape those characters. Or you could try
> addslashes()
>
Ok i worked it out this is really bizarre though basically you were both right,
php seems to be adding the slashes automatically so i didnt need to use
addslashes, but I had to remove the slashes before I was going to show the string
on the client side, when I went to pass the string to the next page via a hidden
field I had to rawurlencode it and then to display to client I had to raw
urldecode it and stripslashes hmm......
Thanks for you help eh :)
Joseph Blythe
mailto:joe.blythe@binarylogic.com.au