Form Submits to white page?

前端 未结 4 1295
无人及你
无人及你 2021-01-29 06:13

So I have a form for my register system. When the form submits and there\'s errors, (like \'Enter a username first!\' or \'You must provide a password!\') it successfully refres

相关标签:
4条回答
  • 2021-01-29 06:30

    This error means that you forget a '$' in front of the variable 'username'.

    Hope this help

    0 讨论(0)
  • 2021-01-29 06:31

    This is probably because you refer to some data as $_POST[username], instead of $_POST['username'], change that.

    0 讨论(0)
  • 2021-01-29 06:33

    An error is occurring partway through the page, and you have error reporting disabled. Enable it and/or check your error log.

    0 讨论(0)
  • 2021-01-29 06:40

    Add this to the top of the form script:

    ini_set('display_errors', 'On'); // sometimes it's needed when overridden to Off
    error_reporting(E_ALL);
    

    So you can see what the error was when you submitted the form.

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