In a message dated 2/1/2003 12:52:24 PM Pacific Standard Time,
[EMAIL PROTECTED] writes:

>i want to set up a form that will load values from a table and make them the
>"value" of the edit box... then when people press an update button then all
>of the stuff that changes from the record already in the table gets
>changed... anybody know how to make it where you can get the values out of a
>table and make them the default value of a input field...?

Basically, get your field values from the database and put them in variables.
Then use the variables in your form. For instance,

echo "<input type='text' name='first_name' value='$first_name'>";

Then, in the script that processes the form, update the database record with
the values that were passed from the form.

Janet

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to