HTML |
Sending data to E-Mail
$to="talikag@gmail.com";
$subject="Sending data to E-Mail";
$body="
Name: ".$_post['name']."
Clan's name: ".$_POST['clan']."
Players number: ".$_POST['players']."
ICQ number: ".$_POST['icq']."
Pelephone: ".$_POST['phone']."
Comments: ".$_POST['comments'];
$sent=mail($to, $subject, $body);
if($sent){
echo "Your message was sent. (=";
}
else{
echo "Sorry, there was a problem and we couldn't send the message. Try again later.";
}
?>
To send the E-Mail again click here
|
חלק 2(index.php, מילוי הנתונים ע"י המשתמש)
HTML |
Sending data to E-Mail
<script language="JavaScript">
<!--
function checking(sText){
if(document.form.name.value.length<2){
alert("Must enter Name!");
return false;
}
if(document.form.clan.value.length<3){
alert("Must enter Clan's name!");
return false;
}
if(document.form.players.value.length<1){
alert("Must enter Players number!");
return false;
}
return true;
}
// -->
Sending data to E-Mail
|