Hi, if I have a text box like this: <? print "<input type=\"text\" name=\"fld\" value=\"".$_POST["fld"]."\"> ?>
and I type test"s in the box and then submit, I only get test . How do I get the original value?
ps: the value contains double quotes
hi ,
try in this manner
<? print "<input type=\"text\" name=\"fld\" value='.$_POST["fld"].'> "; ?>
regards bvsureshbabu
Hi, but if change to value=' ".$POST["fld"]." ' instead of value=\" ".$POST["fld"]." \" ,
then it will not work for ' (single quotes).
Dear Friend, sorry a small mistake
plz use this
<? print "<input type='text' name='fld' value='".$_POST["fld"]."'> "; ?>