• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 266
  • Last Modified:

dropdown in php

Hello experts,

I'm making a php application. Now I want to have a dropdown with the name of a seller in it and than automaticly the other parrameters (like mobile number,...) should be filled in in to the other textboxes. I'm using a query to get the names into the dropdown and I use the html <select> to make the dropdown. Now I'm wondering if it possible to that with php?
thanks for the help !
0
BAVAIT
Asked:
BAVAIT
1 Solution
 
CKY092Commented:
Not if you want to do it dynamically. You'll need to use client-side scripting to get that info dynamically. If you're comfortable with the page reloading each time someone makes a change to the select, then yes, this could be accomplished with PHP.
0
 
Ray PaseurCommented:
jQuery is probably your friend here.  Make a Google search for jquery dynamic dropdown example and you will find several good examples.

You'll need to be familiar with these:
http://api.jquery.com/category/events/
http://api.jquery.com/category/ajax/
http://api.jquery.com/category/selectors/

HTH, ~Ray
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now