html - How to preserve spaces in text input field when echoing php variable -
i've got:
<input type="text" name="location" value=<?php echo $cand['location']; ?>>
when $cand['location']
"east london", textbox says "east" , ignores after first space.
how can have text input hold echoed strings spaces in it?
solved:
<input type="text" name="location" value="<?php echo $cand['location']; ?>">
php html
No comments:
Post a Comment