hi everyone , sorry cant explane well in German .. the Problem is , I'm trying to get the value of an input field to send it to another site for process and from there to an email ,
the input field is a part of a Form , the input-field is called 'namesender' (see the Image) and suppose to have a value when someone writes something in that field this value should be sent to 'form.php' by the submit button which has the following code :
in the site 'form.php' I wrote the following code:
now lets forget about the other values of the form .. lets constrate on 'fss' it is not having its real value .. its not having the text writting in 'namesender' , I get the following in the email :
Name:
Vorname:
Tel.
Email:
Nachricht:
why Name is Empty ?
the input field is a part of a Form , the input-field is called 'namesender' (see the Image) and suppose to have a value when someone writes something in that field this value should be sent to 'form.php' by the submit button which has the following code :
Code:
on (release){
var fss=_root.namesender.text;
getURL("form.php","_self","POST");
}
in the site 'form.php' I wrote the following code:
Code:
<?php
$empfaenger = "myemail@yahoo.com";
$betreff = "Neue Frage eingegangen";
$from = "From: Website <myemail@yahoo.com>";
$txt = "Name: ".$_REQUEST['fss']."\n";
$txt .= "Vorname: ".utf8_decode($_POST['vorname'])."\n";
$txt .= "Tel. ".utf8_decode($_POST['tel'])."\n";
$txt .= "Email: ".utf8_decode($_POST['email'])."\n";
$txt .= "Nachricht: ".utf8_decode($_POST['nachricht'])."\n";
mail($empfaenger, $betreff, $txt, $from);
?>
now lets forget about the other values of the form .. lets constrate on 'fss' it is not having its real value .. its not having the text writting in 'namesender' , I get the following in the email :
Name:
Vorname:
Tel.
Email:
Nachricht:
why Name is Empty ?
Anhänge
Zuletzt bearbeitet: