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
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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.