I have a db table field named "ref_term", which holds a basic product description. An example description is...
19" Designer 50/50
The descriptions are stored using the addslash function, so they are stored as...
19\" Designer 50/50
Now, I'm using 2 pages which display product info. One is prod_list.php, in which I use the "stripslash" function, and when I echo the data, the description displays fine, i.e.,
$ref_term=stripslashes($ref_term);
echo "$ref_term"
which displays as...
19" Designer 50/50
Fine so far. But on the second page, which is an edit/update page (update_product.php), I use the stripslash function, and all I get dispayed is...
19
and nothing else. If I remove the slash from the stored data, I still get the same result, meaning that nothing past the 19 is displayed.
Although this isn't the entire code, these lines must be where something isn't correct, but I don't know what.
$ref_term=stripslashes($ref_term);
Reference<br>
<input type="text" name="ud_ref_term" size="40" value="<? echo "$ref_term" ?>">
Any suggestions?