[英]Php and shadowbox
我有表格脚本
<form action="grava.php" method="post">
<input type="hidden" name="linkfoto" value="<?php if (isset($_POST['acao']) && $_POST['acao']=="cadastrar"){echo $src;}?>" />
Matricula: <input type="text" name="idfunc" /><br />
Nome: <input type="text" name="nomefunc" /><br />
<input type="submit" />
</form>
我想在shadowbox上发送grava.php的表单信息,并在grava.php上创建一个脚本,以在打开后几秒钟关闭该框。
这可以使用setTimeout()
实现:
setTimeout(window.parent.Shadowbox.close, 10000); // 10 seconds delay
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.