I have a simple form saved in a MySQL table on website A.
I need to be able to post that same form on websites B, C, D, E… etc. None of these websites are hosted on the same server as website A. When the form is updated, the form on the rest of the websites must also update.
I’ve tried creating a page on website A which queries the database and displays the form. Then on website B, including the page. I get the following error:
Warning: include(): http:// wrapper is disabled in the server
configuration by allow_url_include=0
I know that allow_url_include is probably turned off by most webhosts, so I need a way to circumvent this and safely include my form. Is the solution to use AJAX or Javascript? Could you give pointers on how to accomplish this?
First of all AJAX is done by using javascript, so if you use AJAX you’ll be using javascript.
Then, there’s no way to do this by embedding the form directly in the html. What I would suggest is:
Hope it helps.