do this: run your php query to get the value of the text box and then do this: <?php //connect to db here $query=//put your query here while($foo=mysql_fetch_array($query)){ //if you use mysql that is... echo "<input type=text name=YourVarName value=\"$foo\">"; } ?>
----- Original Message ----- From: "Todd Barr" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, February 03, 2003 9:59 AM Subject: [PHP] Html forms I am having difficulty putting results into an form Once the query runs, I have this for my output print "<Input type=text name=foo value="; print $Foo; print ">"; This results in an HTML error being apache finds an error AFTER the </html> tag Any ideas? --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.443 / Virus Database: 248 - Release Date: 1/10/2003 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php