Page 1 of 1

Storing form data to mysql database

Posted: Fri Nov 12, 2004 1:06 pm
by kalvaris
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.

Posted: Sun Nov 14, 2004 5:00 pm
by scorphus
A slight Google search by [google]php form tutorial[/google] returned some good tutorials about PHP Form Handling. Also, search by [google]php mysql tutorial[/google] to learn how to play with PHP/MySQL.

-- Scorphus