Please realise that this is hard for me to expain...
I have dowloads sytem that only shows HTML if the user has over 5 points.
It works well. Except for when I am changing download category.
To change category, you select the category, then hit a button. To save the login details. The form posts to
"downloads.php?username=$username&password=$password"
The only trouble is..The Query gets the password from the form and encypts it using md5...
$query = "SELECT * FROM phpbb_users WHERE username = '$username' AND user_password = md5('$password')";
This means that the URL that you get posted to is:
downloads.php?username=whatever&password=your_unencrypted_password
Thus revealing your password.
Have you ANY idea to either prevent &username=whatever coming up in the first place by using sesssions or cookies? So it can change category that way....
OR... do something like make another query that uses the md5 password itself....
?username=whatever&password=fhJFHJWHGJGRHJRHJRHJRHhh
NB: I have tried changing the password form name to "form_password" then added:
<?
$password == md5('$form_password');
?>
Then removed the md5 bit from the query, this doesn't want to work though. It doesn't seem to match the actual two together.
Please help. Thankx
Alex