create an HTML form that accepts the subject name and/or ID call a php routine that inserts the new subject into the DB and then queries the subject DB for all the subjects
next step is to use PHP to generate the HTML code and write a new HTML file containing all the form code for page with the subject checkboxes your admin then has to access the HTML page to add a subject - which calls the php routine and in turn creates a new HTML form containing all available subjects ----- Original Message ----- From: pratimadongare To: [email protected] Sent: Thursday, January 17, 2008 11:44 AM Subject: [php_mysql] reflecting changes in database in html forms I have a question , it's not related to php or mysql but since i cldn't find anything relevant on net and believe you guys must hv come across such a problem, plz try to help.We hv a form with subject options to select (checkboxes). When a new subject has to be added the administrator has to insert a value in the db table(subject id and ubject name). Also the admin has to make appropriate additions in all the form containing options of subject list.The system that we had designed requires the admin to to all these tasks manually. Is it possible to code a module where the admin has to just input the new subjects and their corresponding ids and the code makes appropriate addition in the forms(new option inserted in checkboxes for each new subject added). Database addition is easy, but i cldn't find out how to add a new line in html code.... [Non-text portions of this message have been removed]
