Ignore record when missing Mysql / PHP information

Asked

Viewed 62 times

2

I have a PHP registration form in the Mysql database. After completing the form, the user is redirected to the page cad.php where it says that the registration was made successfully and in 3 seconds it is redirected to login.

The problem is that if the user presses to return, PHP has to register again only with blank data, then creates a line without information.

I searched the internet about ignoring record with missing data, or the Not Null, but I was unsuccessful in the search.

  • even opening a Session if the user clicks back he would register again, wanted to type an "if name, email... not contain information, then redirect to home page"

  • My dear fellow, I think this can solve you: https://answall.com/questions/115453/howto disable the function

  • Strange. Before entering records in the bank you do not check if the variables are empty? If you did that, no empty record would ever be entered in the bank.

  • Otherwise, we could help you better if you post your codes.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.