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! Link to comment https://forums.phpfreaks.com/topic/48112-solved-phpform/ Share on other sites More sharing options...
neel_basu Posted April 22, 2007 Share Posted April 22, 2007 You need AJAX Link to comment https://forums.phpfreaks.com/topic/48112-solved-phpform/#findComment-235112 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. Link to comment https://forums.phpfreaks.com/topic/48112-solved-phpform/#findComment-235114 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. Link to comment https://forums.phpfreaks.com/topic/48112-solved-phpform/#findComment-235175 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.