I am trying to design a form with an input box that has a multi-word default value. I can do this with HTML but for some reason the php code seems to only accept the first word and discards the rest.
Code: Select all
<form >
<input type="text" value="This works fine"/>
<input type="text" value=<?php $mytext="This is useless"; echo "$mytext";?> />
</form>I looked but couldn't find any explaination for this - but maybe thats just me.
Thanks in advance for any assistance.