I know I am missing something here, but I simply can't figure it out after searching the forum and PHP manual.
Basically, I have a web form using mail () function that users send mail with.
Now I would like to use strtr function to replace some accented characters, and don't know how to write it to use multiple character pairs and $_POST.
Example:
if($_POST['vrsta'] == "Informacije")
{
$sendto = "some@mail.com";
$vrsta = $_POST['vrsta'];
$ime = $_POST['ime'];
$tvrtka = $_POST['tvrtka'];
$telefon = $_POST['telefon'];
$email = $_POST['email'];
$upit = $_POST['upit'];
$mail_header="Return-Path:some@mail.com\n
Content-Transfer-Encoding: base64\n
Content-Type: text/plain; charset=iso-8859-2";
mail($sendto, "$vrsta", "Upit: $upit\n\n
Poslao: $ime\n\nTvrtka: $tvrtka\n\n
Telefon: $telefon", "From: $email\n$mail_header");
Now what I would need to do here is insert strtr function into $ime, $tvrtka and $upit variables so all accented characters user enters are replaced with ordinary Cc,Zz,Ss, Dd characters.
I have tried with a single pair
$ime = strtr($_POST['ime'], "è", "c");
but obviously it's wrong - no replacement performed.
Can you please give me a hand here, how to produce the wanted with multiple character pairs and $_POST so it would work? I just can't seem to get it