Jump to content

How To Execute A Block Of Script Before Moving To The Next Field In The Form


learningPHP1

Recommended Posts

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

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?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.