重定向不起作用/警报无显示
redirect not functioning/alert no display
似乎无法实现这一点。我想在提交后返回表单。但它只显示
**Object not found!**
The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.
If you think this is a server error, please contact the webmaster.
**Error 404**
localhost
Apache/2.4.17 (Win32) OpenSSL/1.0.2d PHP/5.6.23
并且警报也不会弹出。或者因为出现错误而不会弹出?
我的php
if (mysqli_query($con,$sql))
{
?><script>
alert('Saved Successfully!');
window.location = ".../cnc/makerForm.php";
</script><?php
}
我的html
<div class="w3-border">
<h6 class = "w3-grey trbl-padding-5 trbl-margin">Maker</h6>
<a class="w3-btn-floating w3-pale-yellow" onclick="return toggleMakerBox('iframe_makerForm')">+</a>
<iframe height="400px" width="100%" src="makerForm.php" style="display:none;" name="iframe_makerForm" id="iframe_makerForm"></iframe>
</div>
谢谢yall。我现在知道我的代码出了什么问题。我表格中的文件拼写错误。
此错误表示目标文件不存在。正如评论中所指出的,这很可能是因为你写。。。相反在重定向路径声明CCD_ 1中。
相关文章:
- Array.length似乎不起作用;console.log则显示其他情况
- Javascript设置日期不起作用,显示错误的时间
- 显示/隐藏不起作用
- javascript文本验证不起作用.警报消息没有't显示
- JQuery隐藏/显示不起作用
- Jquery隐藏/显示不起作用
- 为什么这个简单的ng绑定和ng显示不起作用
- JQuery - 隐藏和显示 - 不起作用
- 基础 4 显示不起作用仅显示叠加层
- jQuery 隐藏和显示不起作用
- ElasticSearch Javascript,突出显示不起作用
- 基础 4 显示不起作用
- JavaScript 图像显示不起作用
- 切换类上的显示不起作用
- Vim自定义高亮显示不起作用
- 刷新页面时页眉显示不起作用
- 当前项(活动)高亮显示不起作用
- j查询效果突出显示不起作用
- Ajax 仅在页面更新时显示不起作用
- AngularJs ng 显示不起作用