search

Home  >  Q&A  >  body text

A "required field is missing" error occurred when registering. This was on a Php Mysql login registration form.

<p>I developed a login system but it tells me that some fields are missing even though I have created them in Sql</p> <pre class="brush:php;toolbar:false;">CREATE TABLE IF NOT EXISTS `users` ( `id` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(50) NOT NULL, `email` varchar(50) NOT NULL, `password` varchar(50) NOT NULL, `create_datetime` datetime NOT NULL, PRIMARY KEY (`id`) );</pre> <p><br /></p>
P粉538462187P粉538462187500 days ago500

reply all(1)I'll reply

  • P粉043566314

    P粉0435663142023-08-18 13:14:01

    I think you need to provide more details about the error, without other information my best guess is that you are not mapping the information from the form when you try to save them to the database, since the fields are required , so this error message appears.

    reply
    0
  • Cancelreply