开发者

an iframe for multiple users

I am trying to create a web page with the following :

Buttons and input fields etc. in the top half of the page that allow the user to define certain criteria, when the user clicks submit, the page calls some php code 开发者_运维知识库that writes an iframe referenced html file which is then shewn on the bottom part of the web page.

I think I understand how to do this for a web page referring to a single iframe document source but there may be more than one user running the page so how do I have the iframe pointing to the correct iframe source for each user?

Some web searching sugests that this is the kind of thing done with XMLHttpRequest, I'll have a look into that.


If I understand correctly, your PHP code creates an HTML file and then loads it in an iframe.

You could have your PHP script output the HTML, then load the PHP script in your iframe directly. Now there is no way for another user to accidentally get the other users' output.


I'm not sure if I understand exactly what you want to do.. but if you have already existing database of users, make a new table with Iframe preferences... so when they click submit, the preferences will be saved to the database with the user_id.. so next time just check if the user has already chosen... if yes, get the preferences from database.. if not -> redirect him to do so.

I don't know if that's exactly what you want

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜