php post提交查询

180it 2019-11-04 AM 3001℃ 0条
                            <p>
                                    <?php
                                    
                                    if(isset($_POST["key"])){
                                        
                                     $key = $_POST['key'];
                                     
                                                    if(!empty($key)){
                                                    echo $key;
                                                    }else{
                                                    echo"<script>alert('key不能为空')</script>";
                                                    }
                                            }
                                    ?>
                            </p>
                            
    <script>
            var aBtn = document.getElementsByTagName("button")[0]
            var aP = document.getElementsByTagName("p")[0]
            aBtn.onclick = function(){
                    aP.innerHTML = "<span class='glyphicon glyphicon-cd'>正在准备资源,请稍等....</span>"
            }

     
    </script>
支付宝打赏支付宝打赏 微信打赏微信打赏

如果文章或资源对您有帮助,欢迎打赏作者。一路走来,感谢有您!

标签: none

php post提交查询