Posted by <edvard on 03/25/06 13:45
The title is maby a bit strage, I had problem coming up with a title
that explain my problem.
I have a variable $myvar="TEST 123"
I would like to use this variable as a default value in a form. I have
tryed this code:
<input name="testbox1" type="text" value=<?php echo "$myvar"; ?>>
the result is a form with a textbox with the default value "TEST"
I have tryed
<input name="testbox2t" type="text" value=<?php echo "TEST 123"; ?>>
Same as before the default value is only "TEST"
But if I try
<input name="testbox 3t" type="text" value= "TEST 123t">
the default value is "TEST 123"
all my test code is inside the <form> </form> statement
[Back to original message]
|