Forum Moderators: coopster

Message Too Old, No Replies

need to include an asp file from another server

         

bangsters

7:40 pm on May 15, 2010 (gmt 0)

10+ Year Member



Hi.

New to this board.

Anyway, I've been trying for hours to find a solution but couldn't find any.

I have a 2 servers. The PHP website is in serverA. I need to include the signup page in serverB into my website in serverA. The catch is the signup page in serverB is ASP.

I would very much like to avoid using an iframe, or if ever i have no choice to to use iframe, is to be able to resize the height as I navigate the pages inside the iframe.

By the way, I'm trying to accomplish this because of this: The signup page of our control panel rests on a totally different server from our webserver. And there is no easy way to skin the signup page. Thus in order for me to integrate the signup page, I need to be able to include it from within my templated site.

Any suggestion is very helpful.

Thanks

coopster

9:31 pm on May 19, 2010 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, bangsters.

So, what happens after they sign up? Are they then able to go to certain areas on the PHP server? It's all a bit confusing to me.

Anyway, you can certain use the same form and post to the ASP server for signups. You can do this right from within your form by making the action attribute point to the ASP server process, or you could use an internal processing on your PHP server to handle the POST request to the ASP server, read the results, and then handle the errors or confirmation accordingly. A common method to accomplish this task are the cURL functions [php.net].

bangsters

3:12 am on May 20, 2010 (gmt 0)

10+ Year Member



So you mean to say I need to recreate the signup pages? thats gonna be tough though as they don't have an api for that.

any way I can just call the page similar to iframe, but not iframe. Since iframe I can set the initial height only. Once I navigate on the iframed page it will not resize.