Php和阴影盒



我有表单脚本

    <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

最新更新