回显php变量时如何在文本输入字段中保留空格
我有:回显php变量时如何在文本输入字段中保留空格,php,html,Php,Html,我有: <input type="text" name="location" value=<?php echo $cand['location']; ?>> 已解决: <input type="text" name="location" value="<?php echo $cand['location']; ?>"> hrml中缺少值的引号
<input type="text" name="location" value=<?php echo $cand['location']; ?>>
已解决:
<input type="text" name="location" value="<?php echo $cand['location']; ?>">
hrml中缺少值的引号