It is almost impossible to create an online guestbook or other such feature without being able to store content on the server (which would require a server-side language). It is possible, however, to incorporate PHP scripts from another site - but it could be quite risky, security wise, as you would need to pass all data to the script out in the open where anyone can see it.
One solution might be to set the 'action' of the form to point to the script on your other server, then have that script redirect users back to your other site once finished.
As for including content from scripts within pages, it would be difficult to do so without the use of frames - in a 'normal' environment, the script would be able to modify and add to the output before it is sent to the client, but as it is obviously unable to do so in such a situation, the only solution that I can see is using frames.
I'm don't think that it's possible, but you
may be able to have JavaScript retrieve the contents of a webpage, store it in a variable, and then display it somewhere in the page. I avoid using JavaScript wherever I can, so I don't
know - but it's unlikely it would work, as JavaScript has little to no file handling abilities (particularly where remote files are concerned).
A very unpractical (to the point of being absurd) solution could be to have the script on the server that supports PHP to generate an image containing the text and then display that image on your other web page. There are obviously a million reasons why this would be a stupid idea, but at a pinch, it could work.
There are various sites around that provide 'free' (usually ad-supported) guestbooks and other such remotely hosted scripts, but I'm quite sure most of them use frames.
Reply