Page 1 of 1

Setting the text

Posted: Tue Dec 07, 2004 5:59 am
by richcoleuk
I have a text field on my page, its name it first. I want to set the text of this box with something. How do i do this?

In terms of C# or something i would use:

first.text = "Hello";

im looking to do the same sort of thing.

Posted: Tue Dec 07, 2004 7:37 am
by snicolas
You can do

$firsttext = "hello";

<input type="text" value="<?php echo $firsttext?>">

s