pass value to form element on a website

We have a web application ASP classic, in it a hidden form value. This is a 'receipt number'.
We need to pass this number to a government website form field so that it populates automatically (Don't need to submit their page - form), just so to avoid errors when people type it in.

How can I do this ?
LVL 1
AleksAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Big MontyWeb Ninja at largeCommented:
you could use javascript to accomplish this:

<a href="#" onclick="document.location = 'govSite.html?recNumber=' + document.getElementById("hdnRecNumber").value;">submit to gov site</a>

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Big MontyWeb Ninja at largeCommented:
if you're expecting any kind of response, then you would want to use AJAX. if that's the case, let me know and I can provide an example
0
Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
If you have a form on site 1 that you control and site 2 has a form to accept data that you do not control, there is no way to get data in the form to auto populate unless that page is expecting outside input.
0
AleksAuthor Commented:
I don't have any control over site 2. Can it be done then ?
0
Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
Only if site 2 has the ability to accept either form post or url get that accepts the id.  If that were the case then the type of javascript big monty gave you might work or simply linking to to http://somesite.com/url?id=abc312 would do the trick or if it is a form use method get- same thing.

If they don't have a way to convert a querystring or form input or have an api, then  your answer is simply, "you can't do that".

http://support.experts-exchange.com/customer/portal/articles/755964-the-experts-told-me-%E2%80%9Cyou-can-not-do-that%E2%80%9D-what-do-i-do-now-?b_id=44
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP

From novice to tech pro — start learning today.