When putting " or ' in text field, \' or \" is returned
| From: | Ben Houlton | Date: | Sun, 15 Jun 2003 13:42:31 +0000 |
| Subject: | When putting " or ' in text field, \' or \" is returned | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-151575@lists.php.net to get a copy of this message | ||
As the subject say, when putting " or ' in text field, \' or \" is returned.
I'm not sure why, but it only happerns when it is returned in a input ->
text field box.
Could you tell me how to fix this.
Thank you.
Code Snip:
$nl = "";
$ascii = "$ascii";
$text_form = ereg_replace (" ", " ", $ascii);
$preview = ereg_replace (" ", " ", $ascii);
$nlbr = nl2br($text_form);
$nlbr2 = nl2br($preview);
include('includes\replace.php');
printf("<INPUT type=\"text\" name=\"msn\"
value=\"$nl$newline\"><br>\n\n");
$printout = "<FONT color=\"#000000\" face=\"MS Sans
Serif\">$nlbr2</FONT>\n\n";