Date: 10/09/01
- Next message: MURVAI-BUZOGANY Laszlo: "[PHP] alloc_globals problem"
- Previous message: Dave Watkinson: "RE: [PHP] Quotation Marks in <textarea>...</textarea>"
- In reply to: news.php.net: "[PHP] Quotation Marks in <textarea>...</textarea>"
- Next in thread: KC: "[PHP] Quotation Marks in <textarea>...</textarea>"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
you can still use this when printing out:
print (stripslashes($Comments) . "\n");
"News.Php.Net" <k_c <email protected>> wrote in message
news:20011009081553.8034.qmail <email protected>
> Hi... I am having some difficulty with my quotation marks in a textarea
HTML
> tag and processed by a PHP form handling script. It seems that if you
enter
> a string in these tags that is surrounded by quotation marks, then you get
a
> backslash and quotation marks surrounding your string in the output.
>
> For example, if I am a user writing a message in a comments section of a
> form:
>
> My dog's name is "Harry". We call him that because he is VERY hairy.
>
> And the form stores the above into a variable called $Comments, and I
decide
> to print out the result of this string:
>
> print ("$Comments\n");
>
> I get:
>
> My dog's name is \"Harry\". We call him that because he is VERY hairy.
>
> As far as I know, PHP is supposed to display quotations in textareas
without
> incident and without the backslashes. Please let me know what I am doing
> wrong.
>
> Thanks,
> KC
>
>
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: MURVAI-BUZOGANY Laszlo: "[PHP] alloc_globals problem"
- Previous message: Dave Watkinson: "RE: [PHP] Quotation Marks in <textarea>...</textarea>"
- In reply to: news.php.net: "[PHP] Quotation Marks in <textarea>...</textarea>"
- Next in thread: KC: "[PHP] Quotation Marks in <textarea>...</textarea>"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

