Re: Html forms
| From: | Sunfire | Date: | Mon, 03 Feb 2003 21:27:48 +0000 |
| Subject: | Re: Html forms | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-134192@lists.php.net to get a copy of this message | ||
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" <tbarr@geo-imaging.com>
To: <php-general@lists.php.net>
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