Hi all, 

        Have simple but annoying issue, I want to display a string within an
input field. This string contains ' & so when it's being display the,
anything after the ' is being left out. Here is the code I'm using:

        $string = str_replace("'", "''", $string);
        $string = stripslashes($string);
        echo "<input type=text name='value' size=20 value = '$string'>";

Thanks
Dave

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

Reply via email to