Comments (4)
Prevention of Duplicate Emails Not Working Properly #12
As stated previously, the login system works fine, except for process-signup.php. The coding does prevent a duplicate record from being created; however, the error message: "email already taken" does not print. Instead, the following error message prints when I added a new user with the same email as another user:
Fatal error: Uncaught mysqli_sql_exception: Duplicate entry '[email protected]' for key 'email' in C:\xampp\htdocs\php-signup-login-main\process-signup.php:45 Stack trace: #0 C:\xampp\htdocs\php-signup-login-main\process-signup.php(45): mysqli_stmt->execute() #1 {main} thrown in C:\xampp\htdocs\php-signup-login-main\process-signup.php on line 45
This is the code for http://localhost/php-signup-login-main/process-signup.php:
The coding that I submitted for process-signup.php, in my previous comment, did not preview as I expected. Here are the actual screenshots for http://localhost/php-signup-login-main/process-signup.php:
from php-signup-login.
@techangela1 Try adding this line to the top of your script:
mysqli_report(MYSQLI_REPORT_OFF);
from php-signup-login.
from php-signup-login.
@techangela1 That's the validation error you get when the form is submitted with no value for the name - try submitting the form with valid data
from php-signup-login.
Related Issues (14)
- Not able to display the message "email already exist" HOT 5
- Signup Parse Error HOT 2
- Signup doesnt work HOT 2
- Signup is not working properly. HOT 8
- I have a error for this line can you help me thankyou! HOT 1
- Fatal error: Uncaught Error: Call to a member function fetch_assoc() on bool in C:\xampp\htdocs\php-signup-login-main\login.php:15 Stack trace: #0 {main} thrown in C:\xampp\htdocs\php-signup-login-main\login.php on line 15 HOT 1
- login form doesn't recognise password array key HOT 2
- JustValidate doesn't work HOT 4
- Fatal error: Uncaught mysqli_sql_exception: Duplicate entry '[email protected]' for key 'email' HOT 3
- issue with password validation HOT 4
- Issues with process-signup file, database connection HOT 2
- Validation from validation.js isn't working. HOT 1
- Email Already Taken HOT 26
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-signup-login.