A "required field is missing" error occurred when registering. This was on a Php Mysql login registration form.
P粉538462187
2023-08-17 16:02:11
<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>
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.