Forum Moderators: open

Message Too Old, No Replies

Reseller Interface

How do I create an interface to my service hosted on another domain?

         

nitecoder

11:01 pm on May 18, 2002 (gmt 0)

10+ Year Member



I host an internet service. I want others to be able to sell their own branded version of the service from their own web site.

So to start with a simple example, a visitor goes to Site A and fills out a signup form. The signup data is sent to Site B. Site A presents a page which tells the visitor whether the signup was successful or not.

What's the best way to do this?

Thanks.

mack

12:30 am on May 19, 2002 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Am i reading right that site a is the partner and site b is yours...

If so a simple way to do this would be to offer the partner code for them to insert into their page. then on "submit" transfere them to a page on your site... just a page with no header saying "thanks your aplication has been received" or something similar... you coudl then have a link saying "back" and use a java script link to take them back so many pages so as to go past the form to the page that started on.. this coudl work.

nitecoder

12:43 am on May 19, 2002 (gmt 0)

10+ Year Member



Yes, Site A is the partner site.

I'm looking for something a little more integrated than what you are suggesting. If Site A's input page just posts to a page on my site, the look of the partner site will be lost.

latweb

11:18 pm on May 19, 2002 (gmt 0)



If i get, these right,,, than you can have the partner site create there own form,,, but they will have to validate there form using a script specify by you!!! that way u get the results you want and the data will be handle your way,,, is that what you asking?

Lisa

12:14 am on May 20, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Well, they are going to have to deliver the data to you. There are a couple ways you can do this.

Have site "A" POST or GET the data to your website. Use XML. Or allow for a remote database update. I have done all three and the GET method is the easiest for everyone.

You just tell them to parse the page which is returned. You will place the text on the return page you want them to include into the middle of their template.

If you are using PHP, this can be done within an hour, or with my example less then a minute.

<?
// get a web page into a string
$fcontents = implode ('', file ("http://www.domain.com/?par1=test&par2=test");
if($fcontents == "success"){
echo "thank you, your application was received";
}else{
echo "thank you, there was something wrong. But I will log it into a database and figure it out later. Thanks for submitting the form to site A, but really I just submitted to site B and there was a problem there.";
}

charrington

6:58 pm on May 26, 2002 (gmt 0)



This is exactly what SOAP and XML are for. And you can find implementations in pretty much every language now. I just finished teaching a class on SOAP this semester, so feel free to ask for advice.