Re: Input text issues



Pol wrote:
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!

Pol,

I believe this was asked and answered in this same ng less than an hour ago.

see http://groups.google.com/group/comp.lang.php/browse_thread/thread/6a4215579cd1dd4e

Carl.
.



Relevant Pages

  • Re: Proust/Moncrieff: do one very well
    ... I suspect there's an echo of the Authorized Version here. ... Jesus 'sets his ... face towards Jerusalem' meaning that he is resolved to go there and won't ...
    (alt.usage.english)
  • s/// and modifiers m and s (was: Re: s///x)
    ... >> Gunnar Hjalmarsson: ... >> I don't consider the /s modifier redundant. ... > misunderstand the meaning of it all the time, ... $ echo 'first ...
    (comp.lang.perl.misc)
  • Re: -=EVH=- at his blazing-best
    ... > i think the fast triplet thing was done by switching on a slap back echo ... Sounds pretty straight to me - meaning you can hear his pattern pretty ...
    (alt.guitar)
  • Re: Oh, hes a Union Man ...
    ... anyone whose tastes in literature don't echo your own. ... Only in your 'special' meaning of the term. ... It's like saying that Rap isn't music, ...
    (uk.rec.motorcycles)
  • Re: Signal in London, SE15
    ... 'hor pol'? ... Surely a denizen of a technical newsgroup should be aware of the meaning of ...
    (uk.tech.digital-tv)