RashmiSonke Posted August 7, 2015 Share Posted August 7, 2015 Hi, I am making a form in which a drop-down box contain name of the customer from database. I want when i select name of the customer, automatically email id of that customer from database should be fetched on the form. i am confuse how to use javascript and ajax for this. Can someone help me with code to solve this, It is urgent. Link to comment https://forums.phpfreaks.com/topic/297677-php-form-event/ Share on other sites More sharing options...
ginerjm Posted August 7, 2015 Share Posted August 7, 2015 You could pass a JSON array of that stuff to the js code in the webpage when your php builds the page. Then it's simply a js function called by an event on the dropdown box. Link to comment https://forums.phpfreaks.com/topic/297677-php-form-event/#findComment-1518206 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.