Jump to content

sending data to a website form


mgm_03

Recommended Posts

This is a generic question but I'll use Yahoo! maps as an example.

Suppose I have a database of property addresses. I want to create a link that, when clicked, sends the street address, city, state to a 3rd party site (like Yahoo maps) to pre-populate the HTML form.

There are other sites I'd like to do this with. Even better, I'd like to be able to automatically submit the form.

Where would I learn to do this?
Link to comment
https://forums.phpfreaks.com/topic/8969-sending-data-to-a-website-form/
Share on other sites

First you have to find out what parameters the particular site needs to display the information. If the site uses the url for parameters then just go to the site, do a trial search then look at the url and setup your parameters accordingly. If the site does not use the url for parameters you might be out of luck unless you can contact them and ask for the parameter names to put in the info.

example of a site address

[a href=\"http://yahoo.com/maps/search.html?state=MA&city=boston&area=downtown\" target=\"_blank\"]http://yahoo.com/maps/search.html?state=MA...n&area=downtown[/a]

With the above you would have to get state, city, and area to get the page to display correctly. so somewhere in your form you would have to use a "method=GET" and have these variables in the form. Or make sure they are in your link to the site.

Hope that helps a little

Ray
Thanks for responding. I think the Yahoo maps may not be a good example on my part.

This is a site on which I'd like to automatically pre-populate the form instead of copy/paste.
[a href=\"http://www.tad.org/Datasearch/re_location_search.cfm\" target=\"_blank\"]link[/a]

And ideally, to be more sophisticated ...extract the data that results once the form is submitted

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.