PHP: Password Reset (Part 2)

preview_player
Показать описание
Part 2 on how to create a password reset system
Рекомендации по теме
Комментарии
Автор

Undefined index means that the variable is not created yet so if you put, isset(); around it like the code one that it will get rid of that error message.

abell
Автор

You dont really need to put it on $_POST because the user only see's that page if they have actually posted some data so the variable will always be set and no errors. The only thing i would use it on is the $_GET because its set in the url and the user can just take that away

abell
Автор

Have you added the extra parameter into the register query?

abell
Автор

Yes thats why the register isnt working properly

abell
Автор

I don't know how to thank you really thank you :D

one more question if $newpassword or $newpassword1 or $POST_email or $code
in the second file gave me Undefined index what can I do??

ElGamerlista
Автор

for example in $newpassword = $_POST['newpassword']; how I will put the isset??

ElGamerlista
Автор

Is that working for those not yet put in online project? I mean in localhosts users?

marcoangelodobleso
Автор

how do i know what link should i use for the user to reset the password?

troyholidaya
Автор

hello abell is it will working on localhost or not

- via YTPak(.com)

attaroams
Автор

hey, i can't register anymore because of the passreset field in phpmyadmin, and if i delete that field everything works fine except the password reseting, of course ....what should i do?

raful
Автор

Can anyone help


Notice: Undefined index: code in on line 5

Notice: Undefined index: code in on line 33


Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in on line 51
That username doesnt exist

zx
Автор

I get the following errors
Undefined index: code in on line 5
Undefined index: code in on line 33 please help!

shaikhshoeb
Автор

I'm trying to do this and it won't work at all

JAYKM
Автор

Use:
if(isset($_GET['code']))

abell
Автор

I get the following errors:

Notice: Undefined index: email in C:\xampp\htdocs\resetpass.php on line 45

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\resetpass.php on line 48
That username doesnt exist.


Can someone help?

Trationcraft
Автор

abell12, i have a big problem, can tu help me.

nurelina
Автор

i didn't received the email after I fill in the username and password even it say "check your email"

please can someone help???

Wahyunulikhwan
Автор

if($_GET['code']) { and if(!$_GET['code']) { gave me undefined index

ElGamerlista
Автор

if anyone know our name nd email he can update our password bt can, t login i think one of the best way to send code on mobile nmbr

- via YTPak(.com)

attaroams