Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Request across servers...

Status
Not open for further replies.
May 9, 2000
446
GB
Hi, I'm just thinking of a way to do something with two sites we've got that can't be connected properly cuz of the security side of things. Both sites are running ASP (on separate servers to each other) anyway I need to copy a load of info from one database at site a to another database on site b. I was thinking of doing this by having a link on site a's website to a form based on site b. Site b's form would request variables from site a's page so that users didn't have to cut and paste.

Question is will I be able to do the request from page b to a even though the pages are on different servers?

Cheers
 
I'm not sure exactly what you are trying to accomplish but let me take a shot at it.

I browse a page on server a which displays a HTML page in my browser with a link to a page on server b.

Server b takes the information from the web page on server a and takes that info passed in and displays a HTML form to the user, pre-populating any data sent in.

The user then completes the form and submits the form to server b which takes the data and updates a database.

Is this what you are trying to accomplish?

Thanks,

Gabe
 
Yeah GabeC thats the one.... is it easy if not then I'll find another way!

Cheers
 
Basically that is what you have to do.

Create a web page with a form on server a OR
Create a web page with a link on server a with the query string containing all your data.
Code:
Ex. <a href=&quot;[URL unfurl="true"]www.serverb.com/testPage.asp?val1=aaa&val2=bbb&quot;>Click[/URL] Here</a>

Create a page on server b, in this example it would be called testPage.asp
The page takes in the data submitted from server a and generates a web page with a form for the user. You use code to populate the form's fields on the server.

The user can then update the form and submit it back to an asp page on server b that then updates the database.

Thanks,

Gabe
 
Cheers for that, I hate trying to think these things out and then you find a small bit won't work when you try it!]

Cheers again
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top