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.
Storing form data to mysql database
Moderator: General Moderators
- scorphus
- Forum Regular
- Posts: 589
- Joined: Fri May 09, 2003 11:53 pm
- Location: Belo Horizonte, Brazil
- Contact:
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
-- Scorphus