Re: stripslashes/addslashes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



If you're bringing it back into a PHP input box, don't use stripslashes() or
you'll end up with, well, what you ended up with.

Edward Dudlik
Becoming Digital
www.becomingdigital.com


----- Original Message -----
From: <Tristan.Pretty@risk.sungard.com>
To: <php-db@lists.php.net>
Sent: Thursday, 15 May, 2003 12:17
Subject:  stripslashes/addslashes


I have an entry from an <input type="text"> box that I'm using addslashes
to enable it to be entered into the MySQL database
All good, it works fine.

When I draw that data, and add it to the same input box, for editing, on a
content management system I'm workign on, the "  marks interfere with the
" marks from the input tag
I end up with this:

<input type="text" value="his reply was "it's a great day" to the
question">

so the  " marks are interfering with the value attribute...

how can I get round this?

Cheers,
Tris...

***********************************************************************
The information contained in this e-mail message is intended only for
the personal and confidential use of the recipient(s) named above.
If the reader of this message is not the intended recipient or an agent
responsible for delivering it to the intended recipient, you are hereby
notified that you have received this document in error and that any
review, dissemination, distribution, or copying of this message is
strictly prohibited. If you have received this communication in error,
please notify us immediately by e-mail, and delete the original message.
************************************************************************




-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux