Thread [php] Problem mit Formularfelderüberprüfung und UTF-8 (103 answers)
Opened by Tom at 2008-10-04 14:02

GwenDragon
 2010-11-21 14:08
#142962 #142962
User since
2005-01-17
14607 Artikel
Admin1
[Homepage]
user image
Ungetestet:
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$umlauts = array (
'ä',
'Ä',
'ü',
'Ü',
'ö',
'Ö',
'ß'
);
$umlauts_decoded = array (
'ae',
'Ae',
'ue',
'Ue',
'oe',
'Oe',
'ss'
);

$_POST['Betreff'] = str_replace($umlauts, $umlauts_decoded, $_POST['Betreff']);
$_POST['Absender'] = str_replace($umlauts, $umlauts_decoded, $_POST['Absender']);

Das sollte so ziemlich am Anfang deines Skripts stehen.
Last edited: 2010-11-21 14:10:36 +0100 (CET)

View full thread [php] Problem mit Formularfelderüberprüfung und UTF-8