I have a problem displaying php as a default value in TEXT field.
It works fine if the $contact is 1 word, but if it is >1 it will just display the first word of the sentence.
For example if the contact is "Joe Bloggs" only "Joe" will be displayed. I have used echo $cont which displays the correct string, but as soon as I put it into the TEXT field, it somehow gets shortened. I have tried different variationa of the code, but nothing seems to work.
BELOW IS THE CODE I USE
$cont = stripslashes($row["contact"]);
echo $cont;
echo "<tr><td>Contact:</td><td><input type=text name='contact' size=30 value=".$cont."></td></tr>";
Has anyone heard of thie before?
Thanks in advance