简体   繁体   English

如何在一页上加载具有相同src的多个iframe

[英]How to load multiple iframes with same src on one page

I am creating a WordPress based website and I have a web page where there are multiple iframes with the same src.When I load this page all iframes are showing the same result, but every iframe should have different iframe content with the values sent using session(used for sending data from a PHP file to another PHP file) from where iframe is defined to the iframe src.The web page basically contains users of the website giving different reviews.The iframe in the web page is used for displaying star rating given in each user review.So, each iframe is displayed with values(userid,etc.) to display user's star rating and other user related data. 我正在创建一个基于WordPress的网站,我有一个网页,其中有多个具有相同src的iframe。当我加载此页面时,所有iframe都显示相同的结果,但是每个iframe都应具有不同的iframe内容,并使用会话发送值(用于将数据从一个PHP文件发送到另一个PHP文件)从iframe定义到iframe src的位置。网页基本上包含对该网站进行不同评论的用户。网页中的iframe用于显示给定的星级因此,每个iframe都会显示值(用户ID等),以显示用户的星级和其他与用户相关的数据。


An image of a webpage: 网页图片:

网页图片


An image of the iframe: iframe的图片:

iframe的图片

如果它在同一服务器上,请改用Ajax。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM