RE: [PHP] using <input> tags with php
| From: | David Freeman | Date: | Sun, 02 Feb 2003 07:24:00 +0000 |
| Subject: | RE: [PHP] using <input> tags with php | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-133971@lists.php.net to get a copy of this message | ||
> i am having a problem using <input> tags by using current
> values kept in a mysql table. how do you get the values out of the
table and
> into a form so they show as the value= part of the tag?
Start by making a basic test:
<?PHP
$some_string = "some string";
echo "<input type=\"text\" name=\"some_string\"
value=\"$some_string\"
size=20>";
?>
or you could try this:
<?PHP
$some_string = "some string";
?>
<input type="text" name="some_string"
value="<?=$some_string?>"
size=20>
Either should work.
Rinse and repeat as necessary.
CYA, Dave