Heim  >  Artikel  >  Backend-Entwicklung  >  哪位大哥给看看 $_post取不到表单值,没有弹框出现 ,这是为什么

哪位大哥给看看 $_post取不到表单值,没有弹框出现 ,这是为什么

WBOY
WBOYOriginal
2016-06-23 13:09:321197Durchsuche


nbsp;html>

     


     Contacts
     
     
     
     
     
     <script></script>
     <script></script>
     <script></script>
     <script></script>
     <script></script>
     <script></script>
     <script></script>
     <script> <br /> <br /> $(window).load(function(){ <br /> $().UItoTop({ easingType: 'easeOutQuart' }); <br /> }); <br /> <br /> </script>
     
                     if($_POST["submit"]){
   echo  "<script>alert('信息请填写完整');location.href='javascript:history.go(-1)';</script>";
   
   }
 
 ?>
     
    
     
     

 
 
  

    
        
         
           

      


           
           

           

           

          







  

    

     
            

           

             

             

    

      

联系我们


      

      

      
联系表单提交!

      我们很快回复! 

      

      
      
      
      

      

      

      

      
      
      

    

    

  





  

    

      
    

    

      
    

    

      
    

    

      

联系我们


     电话: 800-234-5678
info@demolink.org
     
    

    

    

  




    
  

  

    

      
      
      
      
    

      

           © 版权所有 © 公司名称
     

     

  







回复讨论(解决方案)

先确定你提交的是不是本页?

你的input 里面 没有 name=“XX”   没有name值 所以提交后台是空的 你不可能接收到值的

楼上正解

接收表单值 是根据表单的name来接收的 需要给input 设置 name=“nameval” 才能在提交后页面取 $_REQUEST['nameval']


input有name
action的也是本网页;

你使用的 是什么开发环境?

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn
Vorheriger Artikel:php如何接收post方式的json并解析Nächster Artikel:json_decode()问题