i have a table with info into about users for my site, people can join fine with md5 as i used an example to do that but i have added a few bits to it. I am trying to make it so you can update certain parts, i can allow people to update anything in th table now except their password.... i can have them update it but not with md5 meaning the new password wont work.... here is how i update without using md5...
???
this then changes the pass word but when i try tologin it says my password is incorrect :S i think i did try that.... im new to this lol but cnt figure it out
i wernt sure where you was on about with the example but i have got it now thanks, i looked into it with the md5() function you mentioned, i figured i must use that so tried a few different ways i thought it would work and found a way it would... my code now looks a little like this.....
<form method="post"><label>New Password: <input type="password" name="new-pass" maxlength="32"></label><br>Are you sure you have entered the correct new password? <input type="checkbox" name="Sure" onclick = "document.getElementById('yes').disabled=false;"><br><input type="submit" id="yes" name="updatepass" value="Change Pass" disabled="true"></form>
<?php
if(isset($_POST['updatepass'])){
$md5_password = md5($_POST['new-pass']);
mysql_query("update users set password='$md5_password' WHERE username = '$name'");}
?>
Not sure if this is how you was trying to explain it, but it works ok and does the job.... i have other codes in there so that if ur not logged in you cant even access this page, and ive added a checkbox you need to tick before you can submit it.... thanks for your help
sorry i bet u can tell im new to php and mysql, first project this lol....
so if i just change mine to what you have put there, thats how it is supposed to be right?