Jump to content

Read data from from when tab to element, get data from php script reutrn data


Hardwarez

Recommended Posts

Ok, I need to read data from a from text field when the user tabs or clicks out of the box then I need to submit that data to a php page and get two returned values from that page then I need to take that data and fill in two of the text fields in the form automatically.

 

Can anyone tell me how to use java script to do this?

 

Example of what  I want to happen:

User enters name then tabs or clicks to next element in form.  Script reads first field then calls php, which searches database for that name.  If that name is found the php page will return two other strings like address and phone number. The java script needs to automatically fill in the two text fields, address and phone in the form IF data is returned.

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.