Storing form data to mysql database
Posted: Fri Nov 12, 2004 1:06 pm
Ok, so here is what i need to do and im not sure how to exactly do it.
I need to create a form that has blank fields, check boxes and dropdown menus. I know how to create the form but where i get lost is when it comes to saving the form information into a MySQL database. I have a demo database setup called: form username root password is 1234
I have the form all layed out. It has 2 dropdown menus and checkboxes. I dont know how to get the data in the forms to post to a database. What code is required to add to the <input type tags, and what code is required in the <form> tag to get it to post to a db. Really im wondering if anyone has a sample script that shows posting from a dropdown, checkbox as well as input lines to a database.
Thanks.
I need to create a form that has blank fields, check boxes and dropdown menus. I know how to create the form but where i get lost is when it comes to saving the form information into a MySQL database. I have a demo database setup called: form username root password is 1234
I have the form all layed out. It has 2 dropdown menus and checkboxes. I dont know how to get the data in the forms to post to a database. What code is required to add to the <input type tags, and what code is required in the <form> tag to get it to post to a db. Really im wondering if anyone has a sample script that shows posting from a dropdown, checkbox as well as input lines to a database.
Thanks.