on select of value in drop down list

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
devilinc
Forum Newbie
Posts: 16
Joined: Fri Nov 12, 2010 1:07 am

on select of value in drop down list

Post by devilinc »

i have a drop down list of values which i had retrieved from table and displayed in this select drop down box...each value in drop down has corresponding information stored in table......now what i want to do is get the information for the corresponding value from the database table when one of the value is selected and display it below....how do i go about it?is it using ajax or plain php itself?
User avatar
social_experiment
DevNet Master
Posts: 2793
Joined: Sun Feb 15, 2009 11:08 am
Location: .za

Re: on select of value in drop down list

Post by social_experiment »

You could do it with php but if you want the action to take place without refreshing (or clicking a sumbit button) you will have to use AJAX.
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
Post Reply