need help about <input value>
Posted: Fri Oct 23, 2009 10:47 pm
i store the value of my select statement result to an array and stored it to a variable named $fname the i used it as the value of:
<input type='text' name='fname' value=<?php echo $fname ?> />
but when $fname's value is more than 1 word it only displays the first word, but when i:
echo $fname;
i get the right result. What is the problem with this?
Need help. ASAP.
Thanks,
Rexicon
<input type='text' name='fname' value=<?php echo $fname ?> />
but when $fname's value is more than 1 word it only displays the first word, but when i:
echo $fname;
i get the right result. What is the problem with this?
Need help. ASAP.
Thanks,
Rexicon