Jump to content

Getting data from a table with drop lists


VelvetMirror

Recommended Posts

Imagine that you have a table with one column and some rows.Each row has a drop down list (using the select tag) with values from a database.Then you have a button so that when you press it the data gets changed into the database with the values selected in the drop lists.I know how to create the table and load the drop lists with data from the database. But I don't know how to get the new data from the drop lists when I press the button, in order to save it in the database.How would you approach this?I don't know if it's possible to do this in PHP. Should I use Javascript (or JQuery)?Should I use Ajax?Should I use a form?...I just need some ideas in order to know how to get started or what I should learn in order to achieve this.

Link to comment
Share on other sites

If you need to do that dynamicaly without loading the page you have to use ajax (ajax is not another language it is the javascript whic is used to request pages) otherwise simple form will do that too but it will load the page again.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...