search

Home  >  Q&A  >  body text

Why can't my login.php get data using the post method?

I pointed the form action of login.html to login.php, and then $name=$_POST['name']; in login.php, but it shows that name is an undefined index. How is this going1.png2.png?

❤非酋❤非酋2618 days ago1360

reply all(2)I'll reply

  • phpcn_u29672

    phpcn_u296722017-09-23 10:53:06

    I have also encountered this problem, the solution: do not open the webpage from phpstrom, just open it directly with the browser

    reply
    0
  • Andy

    Andy2017-09-14 09:47:26

    First of all, you need to check whether the path to login.php is correct.

    Secondly, I didn’t see your submission operation. Please copy the entire code

    reply
    0
  • Cancelreply