Home > Backend Development > PHP Tutorial > 为啥PHP不能接收。

为啥PHP不能接收。

WBOY
Release: 2016-06-13 12:30:22
Original
832 people have browsed it

为什么PHP不能接收。。

 $.ajax({<br />
       type: "POST",<br />
        url: "index.php",<br />
        data: "location=img_png_src",<br />
        success: function(msg){<br />
         alert( "Data Saved: " + msg );<br />
           }<br />
      });<br />
Copy after login

<?php echo $_POST["location"]; ?>
Copy after login


PHP接受不了 报错了 Notice: Undefined index: location in C:\wamp\www\makebanner\index.php on line 45

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template