Please complete all fields!
'; $test123 = 'true';} if($_POST['formPassNew'] != "" and strlen($_POST['formPassNew']) < 6) { echo "
Your password is too short.
"; $check = "true";} if ($_POST['formPassNew'] != "" and preg_match("/^[0-9]+$/", $_POST['formPassNew'])) { echo "
Your password contains numbers only.
"; $check = "true"; } if ($_POST['formPassNew'] != "" and preg_match("/^[a-zA-Z]+$/", $_POST['formPassNew'])) { echo "
Your password contents letters only.
"; $check = "true";} if ($_POST['formPassNew'] != "" and preg_match('/[^a-zA-Z0-9-_.]/', $_POST['formPassNew'])) { echo "
Your password contains special characters! Only – _ and . can be used.
"; $check = "true";} $testnew1 = md5($_POST['formPassNew']); $testnew2 = md5($_POST['formPassNew2']); if($testnew1 != $testnew2) { echo '
Please repeat your new password correctly! Please notice that small letters and capital letters will be considered as separate characters.
'; $test123 = 'true'; } if($check != "true") { $ID = $_SESSION['log2']; $test = md5($_POST['formPassOld']); $sql = "SELECT * FROM tableuser WHERE BINARY User_ID = '$ID' AND Password = '$test'"; $result = mysql_query($sql); if(!mysql_num_rows($result)) { echo '
Please check your current password! Please notice that small letters and capital letters will be considered as separate characters.
'; $check = 'true';} if(mysql_num_rows($result)) { while($row = mysql_fetch_object($result)) { $Mail = $row->Email; $Signatur = $row->Forename." ".$row->Surname; } $sql1 = "UPDATE tableuser SET Password = '$testnew1' WHERE User_ID = '$ID'"; $result1 = mysql_query($sql1); $mesg = ""; $mesg .= ""; $mesg .= ""; $mesg .= ""; $mesg .= ""; $mesg .= ""; $from = "From: contact@dnabank-network.org\n"; $from .= "Content-Type: text/html\n"; mail($Mail, "DNA Bank Network - New Password", $mesg, $from); echo '
Dear ".$Signatur."

Your password has been changed successfully.
Your new password: ".$_POST['formPassNew']."

Sincerely,
The DNA Bank Network Team

Your Account

Your password have been changed. You will immediately receive a confirmation email.
'; } } } //if($formSubmitSearch) if(!$formSubmitSave or $check == 'true') { ?>

Your account

Change password? If you would like to change your password, enter you current password below followed by your new password. Your password must be at least six characters in length and has to contain letters as well as numbers to make it unlikely to be assumed.
Please notice that small letters and capital letters will be considered as separate characters.

Enter current password:
Enter new password:
Confirm new password: