Forum Moderators: open
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.
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.
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.";
}