After PHP finishes executing the program, it wants to perform a form submission action.
PHPz
PHPz 2017-05-16 13:14:38
0
2
408

I want to execute the SUBMIT action of a form after the SQL insert program is successfully inserted. How should I write it, fellow experts! Thank you!

if($result){
这里面应该如何写呢!
}
<form action='/1.php' name='form2' method='post'>
<input type='text' name='name' value=''>
<input type="submit" name="submit" value="UPLOAD">
</form>
PHPz
PHPz

学习是最好的投资!

reply all(2)
滿天的星座

echo "<form style='display:none;' method='post' action='/1.php'>

          <input name='test' type='text' value='test' />
     
        </form>
        <script type='text/javascript'>function load_submit(){document.form1.submit()}load_submit();</script>";
仅有的幸福
if($result){
    echo '$(function(){
        $("form").submit();
    })';
}
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template