Load form dynamically based on a dropdown selection

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ranura
Forum Newbie
Posts: 4
Joined: Sun May 13, 2012 6:41 am

Load form dynamically based on a dropdown selection

Post by ranura »

I have 10 tables in my database.
I want load these 10 table names into a drop-down list.
If a user selects a value form the drop-down list, a form should be displayed with related to the table. (form fields should be appropriate table's column headers)
When user fill the form and submitted, data should be saved in the selected table.

Give me a code example to do this.
Post Reply