Re: stripslashes problem
| From: | rotsky | Date: | Mon, 10 Mar 2003 10:42:52 +0000 |
| Subject: | Re: stripslashes problem | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-18938@lists.php.net to get a copy of this message | ||
Well I could, but then I get a problem at the next stage.
To summarise, there are three stages:
- entry form
- confirmation - display details and say 'is this okay?'
- write to database
If you enter O'Brien in the form, it's shown as O\'Brien on the
confirmation. If I leave it that way, when it reaches the third page it
turns up as O\ - and that's all (ie, the backslash on the confirmation page
has itself been escaped - don't know what's happened to the quote or the
rest of the string). If I run it through stripslashes() on the confirmation
page, it turns up as just O on the final page. Damned if I do, damned if I
don't...
"Bobo Wieland" <dev@elstudion.com> wrote in message
news:002001c2e6ed$3d467320$4fe81e0a@elstudion...
> Can't you just use <?php print stripslashes($name); ?> Where the name
should
> be visible, and never really modify the variable, just the output...?
>