form text box question

liunx

Guest
Hi,<br />
I am trying to create a html form that will load some<br />
text into a text box when the submit button is pressed.<br />
<br />
I have posting data down, but how do you get text to load in the text box/text are box. (Then the idea is to allow the user to edit the text and post it.)<br />
<br />
thanks.<!--content-->what script are you using?<br />
<br />
you can set the content of the text box using a value attribute in its tag - but do it with data from an earlier page you would need to do set this attribute as the page rendered, yes?<br />
<br />
in php (a server side script) I would do it like this:<br />
<br />
<br />
<br />
php script code<br />
...<br />
?><br />
<form ... ><br />
...<br />
<input type="text" value="<?php echo $_POST['value']; ?>"><br />
...<br />
</form><br />
<?php<br />
...<br />
<br />
<br />
<br />
of course, not knowing what script language you are using, i just had to use an example<!--content-->Yep, I guess that would have helped.<br />
<br />
I am using perl, I don't know anything about php. Would it be done in a similair way?<br />
<br />
thanks}:-)<!--content-->don't know perl - but i am sure you have something similar for generating the page<!--content-->
 
Back
Top