Robert Sossomon <mailto:[EMAIL PROTECTED]>
    on Friday, June 18, 2004 12:30 PM said:

> My code for extraction:
>    $item_desc = addslashes($Quote['sel_item_desc']);

you don't need to addslahes() when retrieving. just htmlentities() the
data before you display it.

do a simple test:


<?php

        $data = 'hello. some "data" is here';

        // shouldn't work
        echo "<input type="text" value="$data" />";

        $data = htmlentities($data);

        // should work
        echo "<input type="text" value="$data" />";

?>



chris.

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

Reply via email to