我会解释:我有一个图片库,第一页是display.php。用户可以使用箭头翻阅图片,当你单击一个箭头时,它会发送一个Ajax请求,从数据库中检索下一张图片。现在,我希望URL根据显示的图片进行更改。
So if the first picture is:
www.mydomain.com/display.php?picture=Paris at night
我将切换到下一个,URL将是
www.mydomain.com/display.php?picture=The Big Ben
我该怎么做呢?
我有一个php页面,在页面的中间有第二个php页面,类似于下面:
<?php
main content page
<?php include 'db-info.php';?>
more content
?>
db-info.php显示一个包含来自数据库的信息的表。当数据库更新时,我希望主页显示更新的结果。如果我有一个独立的db-info.php页面,我可以让它刷新,但我不知道如何让db-info.php刷新,当它包含在主内容php页面中时。
我不希望经常扫描数据库的更改来触发刷新,因为只有在单击按钮时才会更新数据库。关于如何链接按钮单击或数据库更新以使d
我一直在研究如何使用PHP和Javascript在同一页面上相互通信。
首先,我在顶部有一个php脚本,它有一个从AWS Ivona媒体流中检索音频的函数。
<?php
function createAndPlay($text){
// request service get response save to `$data`
// I want this to then play the sound
}
?>
<script>
// when button clicked createAndPlay("Text
我正在使用嵌入在iFrame页面中的mail-data.php,在该页面中输入用户详细信息以供邮件使用。
是否可以根据从数据库检索的id将数据从payin.php (原始页)页传递到mail-data.php (iFrame)?
如何将数据从mail-data.php (iFrame)发布到另一个页面mail.php以执行mail函数?如果是,如何将数据从普通页面传递到iFrame页面?
我尝试使用iFrame页面中的表单操作到mail.php,但是我得到了显示的错误。
Not Acceptable
An appropriate representation of the r