is it possible to alter the $_POST-Values (well, obviously it IS possible 'cause it works fine, but are there any security-problems?) like this:
Code: Select all
function check_values($ARR) {
$error = false;
$errortext = "";
$phone = ereg_replace("ї/,\, ]","",trim($ARRї"Phone"]));
$phone = ereg_replace("-","",$phone);
$fax = ereg_replace("ї/,\, ]","",trim($ARRї"Fax"]));
$fax = ereg_replace("-","",$Fax);
$_POST = array(
"Anrede" => $ARRї"Anrede"],
"Name" => trim($ARRї"Name"]),
"Vorname" => trim($ARRї"Vorname"]),
"Titel" => trim($ARRї"Titel"]),
"Adresse" => trim($ARRї"Adresse"]),
"PLZ" => trim($ARRї"PLZ"]),
"Ort" => trim($ARRї"Ort"]),
"Phone" => $phone,
"Fax" => $fax,
"eMail" => trim($ARRї"eMail"]),
"Login" => trim($ARRї"Login"]),
"Pass" => trim($ARRї"Pass"])
);
// the rest of the code doesn't matter