Thursday, July 29th 2010, 1:40pm UTC+2
You are not logged in.
This post has been edited 2 times, last edit by "lunde1369" (Dec 27th 2007, 11:44pm)
|
|
PHP Source code |
1 2 3 4 5 |
<?php
$text="Test";
echo utf8_encode($text)."<br>";
echo utf8_decode($text);
?>
|



|
|
ActionScript-Quelltext |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
function clicked() {
var lv = new LoadVars();
lv.name = name.text;
lv.firma = firma.text;
lv.betreff = betreff.text;
lv.mail = mail.text;
lv.plz = plz.text;
lv.fax = fax.text;
lv.phone = phone.text;
lv.herr = herr.value;
lv.frau = frau.value;
lv.familie = familie.value;
lv.auswahl1 = auswahl1.value;
lv.auswahl2 = auswahl2.value;
lv.auswahl3 = auswahl3.value;
lv.nachricht = nachricht.text;
lv.sendAndLoad("form.php", lv, "POST");
}
button.addEventListener("click", clicked); {
|
|
|
PHP Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
<?PHP
$empfaenger = "deine mailadresse@.com";
$betreff = "Anfrage";
$from = "From: Kontaktformular";
$txt = "Name : ".utf8_decode($_POST['name'])."\n";
$txt .= "Firma : " .utf8_decode($_POST['firma'])."\n";
$txt .= "Betreff: " .utf8_decode($_POST['betreff'])."\n";
$txt .= "Mail: " .utf8_decode($_POST['mail'])."\n";
$txt .= "PLZ/Ort: " .utf8_decode($_POST['plz'])."\n";
$txt .= "Fax: " .utf8_decode($_POST['fax'])."\n";
$txt .= "Phone: " .utf8_decode($_POST['phone'])."\n";
if(utf8_decode($_POST['herr'])=="true") {
$txt .= "Herr \n";
}
if(utf8_decode($_POST['frau'])=="true") {
$txt .= "Frau \n";
}
if(utf8_decode($_POST['familie'])=="true") {
$txt .= "Familie \n";
}
if(utf8_decode($_POST['auswahl1'])=="true") {
$txt .= "Ich könnte mir vorstellen,.. \n";
}
if(utf8_decode($_POST['auswahl2'])=="true") {
$txt .= "Ich möchte mehr über Sie wissen. \n";
}
if(utf8_decode($_POST['auswahl3'])=="true") {
$txt .= "Ich könnte mir vorstellen, dass bla, bla... \n";
}
$txt .= "Nachricht: " .utf8_decode($_POST['nachricht']);
mail($empfaenger, $betreff, $txt, $from);
?>
|
wird der string "Test" als "kyrillische buchstaben" zurückgegeben

This post has been edited 1 times, last edit by "nervkopf" (May 28th 2008, 4:12pm)
) 
)
This post has been edited 1 times, last edit by "FirePanther" (May 28th 2008, 4:37pm)

This post has been edited 1 times, last edit by "nervkopf" (May 28th 2008, 8:51pm)
|
|
ActionScript-Quelltext |
1 |
_root.["radio_"+groupid]=_name
|
|
|
ActionScript-Quelltext |
1 |
trace("Markiert ist Radio "+_root.radio_1)
|

|
|
ActionScript-Quelltext |
1 |
wert=_root["text"+substring(_root.radio_1,2)].text
|


This post has been edited 1 times, last edit by "FirePanther" (May 28th 2008, 11:31pm)