Login script not working as required

后端 未结 2 1149
甜味超标
甜味超标 2021-01-22 09:15

I am new to php and tried to develop a login script but when i enter values it is not working. I cant even find the errors because when i click on submit it just refreshes the p

2条回答
  •  温柔的废话
    2021-01-22 09:33

    ok, you have an echo statement with a file name:

       echo "myaccount.php";
    

    First of all, are you sure that is what you want to do? I believe that will echo the string "myaccount.php". I believe you would want to include "myaccount.php"

    secondly, you have referenced the form field "user_name" in your javascript, but the field name you are trying to access is named "email". That might be part of the issue as well.

提交回复
热议问题