Php与shadowbox

Php与shadowbox,php,lightbox,shadowbox,Php,Lightbox,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="

我有表单脚本

    <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上提交表单内容呢?
setTimeout(window.parent.Shadowbox.close, 10000); // 10 seconds delay