I have been thinking for a while. And i have an idea i would like to have a sanity check on. The idea is this. I have a website www.mysite.com and you have a website www.yoursite.com I have a service on my site where you can "buy" a contact form (name, mail description) to your site. The trick is that it is still hosted on my page and i have the database the maintenance etc. but you have the functionality of a contact fo开发者_StackOverflowrm on your page. Is this possible? How about an iFrame? Javascript? X-domain rules etc.
Will it work?
Yes, it's possible. There is no limit to where a form can point.
The only thing to be careful with is switching protocols.
- When you submit from a HTTPS form to a HTTP target, you will get a warning in some browsers.
- When it's the other way round, the
HTTP_REFERER
will not be set, so you can't use that to determine the incoming page. (But you will want to use a form variable for that anyway.)
Other information that might be helpful from a nearly identical question posted today.
精彩评论