learningPHP1 Posted December 15, 2012 Share Posted December 15, 2012 hello Everybody, I have a basic user form and the information is saved or submitted by of course a submit button. In the middle of the form i have a zip code lookup field and what I like to do is run the zip code lookup script and display the country, state, and city before moving to the next field. - I have the script which looks up the zip code and tested ok. How do I run a seprate code in the middle and have the resultes displayed before moving to the next field below? any help you can provide would be greatly appreciated. thanks Link to comment https://forums.phpfreaks.com/topic/272019-how-to-execute-a-block-of-script-before-moving-to-the-next-field-in-the-form/ Share on other sites More sharing options...
trq Posted December 15, 2012 Share Posted December 15, 2012 Sounds like a job for Javascript to me, wrong board. Link to comment https://forums.phpfreaks.com/topic/272019-how-to-execute-a-block-of-script-before-moving-to-the-next-field-in-the-form/#findComment-1399499 Share on other sites More sharing options...
Christian F. Posted December 15, 2012 Share Posted December 15, 2012 The correct answer is: AJAX. I recommend reading up on jQuery for this, as it'll make it a lot easier for you. Link to comment https://forums.phpfreaks.com/topic/272019-how-to-execute-a-block-of-script-before-moving-to-the-next-field-in-the-form/#findComment-1399509 Share on other sites More sharing options...
learningPHP1 Posted December 15, 2012 Author Share Posted December 15, 2012 The correct answer is: AJAX. I recommend reading up on jQuery for this, as it'll make it a lot easier for you. Thank for the suggestion. is there a something specific i should be searching for, a key word, is the process called anything? Link to comment https://forums.phpfreaks.com/topic/272019-how-to-execute-a-block-of-script-before-moving-to-the-next-field-in-the-form/#findComment-1399547 Share on other sites More sharing options...
MDCode Posted December 15, 2012 Share Posted December 15, 2012 jquery - $.post(); Link to comment https://forums.phpfreaks.com/topic/272019-how-to-execute-a-block-of-script-before-moving-to-the-next-field-in-the-form/#findComment-1399559 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.