A little trick to store data into mysql database from a large form

Sometimes we feel boring to write mysql insertion query to store data into database from a large form where are too many input fields (such as about 50 fields). We face problem to handle all the fields, sometimes we miss the field name. Here is a small trick to store data from such a large form. In this trick, we have to do same naming of table fields and input fields. For example – [html][/html] Then the field name of the database will be “first_name” Then the php code will be: Suppose, name of the submit button is submit [html][/html] […]

Continue Reading

You may also like