dropdown in php

Posted on 2011-10-13
Last Modified: 2012-08-13
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 !
Question by:BAVAIT
    LVL 4

    Accepted Solution

    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.
    LVL 107

    Expert Comment

    by:Ray Paseur
    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:

    HTH, ~Ray

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Join & Write a Comment

    Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
    Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
    Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
    The viewer will learn how to dynamically set the form action using jQuery.

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now