Sorry if this isn't the right group but I didn't find a group dedicated
to html. I'm creating a web page that includes a form with text fields.
Is there a way I can pre-populate the text fields using the parameters
received in the post request (i.e. the www.foo.com?myvalue=hello). So I
can populate the "myvalue" text field with "hello" when the page loads.
Just naming the text field "myvalue" doesn't seem to do it.
Thanks, and sorry again for not being completly on topic
-Robert
Hal Rosser - 01 Feb 2006 02:15 GMT
> Sorry if this isn't the right group but I didn't find a group dedicated
> to html. I'm creating a web page that includes a form with text fields.
[quoted text clipped - 6 lines]
>
> -Robert
The 'value' attribute is what you need to fill in the text box with the
initial value.
<input type="text" name="fullname" id="fullname" value="Hello World" />
(the words "Hello World" would appear in the above text box.)
Robert M. Gary - 01 Feb 2006 06:27 GMT
Awesome! That was it, thanks!
-Robert