jquery mobile w/ php login form

后端 未结 2 1964
情书的邮戳
情书的邮戳 2021-01-16 12:32

I am newbie using jquery mobile with php. I have a little problem on my login form with submit button after I submited, it head to \'home.php\' page but url didn\'t go to ho

相关标签:
2条回答
  • 2021-01-16 13:07

    After each call to

    header("Location: home.php");
    

    you need to add a line like this:

    exit();
    

    this should solve your problem.

    0 讨论(0)
  • 2021-01-16 13:17

    You need to add data-ajax="false" to the form tag. This will submit the form to your action URL without using Ajax navigation that is built into jquery mobile. Also, you should use the full URL in the form action. (jquery mobile sometimes gets confused)

    0 讨论(0)
提交回复
热议问题