editing data, forms and default values
Posted: Sat Feb 15, 2003 10:34 am
I have a problem updating data in a MySQL database using HTML forms and PHP scripts:
I need to modify data from one database register and I want to do this in this way:
1.- One PHP script read data from a MySQL database and store it in some variables (no problema with this)
2.- A HTML form must include these values as default values, in order to let me modify as necessary (I don't know how to mek this)
3.- Another PHP script validates the form and update database (no problem)
How can I do this?
I need to modify data from one database register and I want to do this in this way:
1.- One PHP script read data from a MySQL database and store it in some variables (no problema with this)
2.- A HTML form must include these values as default values, in order to let me modify as necessary (I don't know how to mek this)
3.- Another PHP script validates the form and update database (no problem)
How can I do this?