newtoall Posted April 22, 2007 Share Posted April 22, 2007 Hi, Short question: Is it possible to have a php form that will be automatically populated when a user selects a value from a drop down list item. Description: I have am writting a php form that will be used to update information that already exisits on a mysql database. I have set up two forms on one screen one contains a drop down list of people names and a 'get details' button. This form basically passes the id of the person the user selects on this first form back into the screen and is used by the second form to populate each field: value="<?php echo retrive_person($person_id)->FIRST_NAME;?>" Rather than having two forms is it possible to have one form with the fields being populate as soon as the details of the person the user selects from the drop down list. Any help would be appreciated! Quote Link to comment Share on other sites More sharing options...
neel_basu Posted April 22, 2007 Share Posted April 22, 2007 You need AJAX Quote Link to comment Share on other sites More sharing options...
1042 Posted April 22, 2007 Share Posted April 22, 2007 Hi, Check out this link http://dhtmlgoodies.com/index.html?whichScript=ajax_client_lookup , you can start with this and modify it to achieve what you need. Cheers. Quote Link to comment Share on other sites More sharing options...
newtoall Posted April 22, 2007 Author Share Posted April 22, 2007 Ajax is indeed what I wanted!! Cheers for the link. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.