Re: Input text issues
- From: Carl <_Nospam_@xxxxxxxxxxxx>
- Date: Mon, 27 Feb 2006 23:34:12 GMT
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.
.
- References:
- Input text issues
- From: Pol
- Input text issues
- Prev by Date: Re: PHP MVC architecture
- Next by Date: Re: Complicated while loop for a simpleton
- Previous by thread: Re: Input text issues
- Next by thread: Re: Input text issues
- Index(es):
Relevant Pages
|