I have searched forum database for this question but didn't see it, i apologize if this has been answered.
setup:
use addslashes() to insert form data, which contain quotes, into the database. calling the data from the database and placing into an array which then I assign the values to variables using the stripslashes().
problem:
when i "echo" the variables out to document alone it works fine, but it is when i "echo" the variables to the a textbox value is where i have the problem. The quotes and the text after the qutoes disappear.
code:
(SOME CODE)
$variable = stripslashes($array_data[0]);
(SOME CODE)
echo $variable;
(SOME CODE)
<input type="text" name="variable" value="<?php echo $variable ?>">
result:
this is the echoed data with "quotes".
this is the echoed data with
please help!!!! thanks in advance....