Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,194,298 members, 7,954,191 topics. Date: Friday, 20 September 2024 at 01:53 PM |
Nairaland Forum / Science/Technology / Programming / Confirm Password Feature (1083 Views)
Why Has Nairaland Not Done Any Considerable Change/feature In Years / New Feature Lists For Nairaland In 2018 / Vuejs Confirm Dialog Plugin (2) (3) (4)
Confirm Password Feature by Nobody: 1:54pm On Nov 04, 2016 |
please can some one help me i need to learn how to code the confirm your password feature in html form i dont know the code thank you. |
Re: Confirm Password Feature by Nobody: 2:16pm On Nov 04, 2016 |
Just put your input fields there and compare them at the backend, when there is a POST request |
Re: Confirm Password Feature by Nobody: 2:57pm On Nov 04, 2016 |
Please i dont understand compare in what way Password:<br> <input type="password"name"paswd"> <p> Confirm password:<br> <input type="password"name"paswd"> how do i go from here |
Re: Confirm Password Feature by CodeHouse: 3:03pm On Nov 04, 2016 |
Here mate something basic.. $con is your database connection variable Edited: I just saw that you want to compare user's database password and the one being input, right? battery low now, I will upload it later the complete code. The one below will just work for sign in |
Re: Confirm Password Feature by jidez007: 4:13pm On Nov 04, 2016 |
Know that password and confirm_password are 2 different fields, they should have different input name. I would do it this way <input type='password' name='password'> <input type='password' name='confirm_password'> Then from your php form handler if($_POST['password'] != $_POST['confirm_password']) { echo 'password doesn't match'; } else { echo 'matched'; } |
Re: Confirm Password Feature by Nobody: 9:58am On Nov 05, 2016 |
jidez007:Thanks bro i will dig into it meanwhile this php is my headache i have not started learning it i will do as soon as am through with my basic html and css. |
Re: Confirm Password Feature by Nobody: 4:45pm On Nov 05, 2016 |
Ogbonnaya1: if (strcmp($_POST['password'] , $_POST['password1']) === 0) { //good to go } else { //prompt user to re-confirm } |
(1) (Reply)
Ingredients That Makes A Productive Professional Programmer / Using Jfreechart With Mysql To Plot A Graph Using JAVA / How Can I Learn Programming Languages?
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 17 |