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. Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/297677-php-form-event/#findComment-1518206 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.