I am developing a SaaS based application in PHP , in which my clients (web site owners ) can create and customize some contact forms. Then I would like to publish that page to my client web site with out showing the url ( I mean it needs to seem like the page from my clients domain ). We can see the same situations in surey monkey and other online chat applications . Please help me to solve this .
Thanks in advance,
Sunil
4 Solutions:
iframe – Downside is, many people don’t like them. Some people have security issues with it. Other than that, they are just fine.
External Javascript file – Include it in your header, have it populate the page with specific content. Works like a charm and you can even use remote files:
<script src="http://external.com/form.php" type="text/javascript"></script>. Downside, possible conflicts in the page if user wants to include own content on the page. Personally I prefer this method and use it in syncing a website menu across multiple servers (some apache, some tomcat).JSONP – Much like the external Javascript file, load up the external page via a JSONP request. Downside, a lot of configuration, more than just including the one line above.
curl – Great tool, no way for anyone to realize the content is from another side. Requires backend configuration and more than just plain HTML. More coding. More professional.