Problems with PHP login code validation and password_verify function

Well, you shouldn’t be using mysql_ first of all. I strongly suggest you sticking with 1 library. You seem to be jumping back and forth between different libraries. Just stick with 1 and use it. If you’re going to use mysqli_ then stick with it.

And lastly, that should work.

1 Like

Hmm…it doesn’t work. I get a blank page after hitting submit. If the data is a duplicate, it still makes a blank page but doesn’t insert, and if it is NOT a duplicate, it’s inserted, but still produces a blank page. ??

Okay got it. I needed to specify the db connection:

	if (mysqli_error($db)) {
	    echo "error etc";
	} else {
		header('location: thanks.html');

Thanks!

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.