Hello, Can someone explain why this does not work? <td><input name="Name" type="text" size="50" maxlength="80" value=<?php echo "Mr Smell";?>></td> but this does. <td><input name="Name" type="text" size="50" maxlength="80" value="Mr Smell"></td> The first one only populates the field with the text before the space, the second example populates it with the 2 words including the space?!? Thanks Late
Try this: <input name="Name" type="text" size="50" maxlength="80" value="<?php echo 'Mr Smell';?>"> One question: Does your file ends with .php or .htm?
this works but i want to use a variable name: <input name="Name" type="text" size="50" maxlength="80" value="<?php echo '$myvar';?>"> This justs prints the text $myvar in the field. Its a .php page, but it loads some HTML pages too.
Remove the single quotes, like this: <input name="Name" type="text" size="50" maxlength="80" value="<?php echo $myvar; ?>"> It should work.