Re: Input text issues
- From: "Nancy" <no@xxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 27 Feb 2006 23:31:28 GMT
Andy Hassall has a better answer under the previous post "Weird: Slashes
getting added"
"Nancy" <no@xxxxxxxxxxxxxxxxxxxxx> wrote in message
news:AVLMf.4532$S25.1853@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I believe php is 'escaping' these characters so they will not be parsed as
code.
see http://us3.php.net/manual/en/function.stripslashes.php
hth
nan
"Pol" <Pol@xxxxxxxxxx> wrote in message
news:1206v631dfmpp29@xxxxxxxxxxxxxxxxxxxxx
Whenever I receive input from an HTML text field or and HTML text area
with " or ' meaning double or singe quotes into a php variable and then
print or echo it back out to the user in html I get these characters
accompanies by a \ . Why is this and how can I get rid of it.
$submitform->body=@$_POST['body']; <<<< there are no \ in the input.
print("body - ".$submitform->body."<br>"); <<<< but here there will be
slashes for all ' or " .
Thanks for any help!
.
- References:
- Input text issues
- From: Pol
- Re: Input text issues
- From: Nancy
- Input text issues
- Prev by Date: Re: Input text issues
- Next by Date: Re: PHP MVC architecture
- Previous by thread: Re: Input text issues
- Next by thread: Re: Input text issues
- Index(es):