my users comes to a field that asks for a value.
from the form they enter an address.
what i want to to grab that address from the form, get the value from another site, and add the value to the field.
pull data from a site and place it in a form
Moderator: General Moderators
Re: pull data from a site and place it in a form
If you want to display the data from another site in your form before the user submits the form you can use ajax, is that what you're trying to do? Please be more specific.
-
x_mutatis_mutandis_x
- Forum Contributor
- Posts: 160
- Joined: Tue Apr 17, 2012 12:57 pm
Re: pull data from a site and place it in a form
sorry but that sounded dirty lolinosent1 wrote:my users comes to a field that asks for a value.
Re: pull data from a site and place it in a form
What does that mean? Do you mean use an API to look up a postal code, for example? How will the value be obtained?inosent1 wrote: get the value from another site
If that is what you want to do, yes, use AJAX to call your PHP script that employs the API to look up the value, then returns that value to the Javascript function in your form page and inserts it where needed.