|
$msg = "First Name:$first \n";
$msg .= "Last Name:$last \n";
$msg .= "E-mail Address:$email \n";
$msg .= "Komentet: $profesioni \n";
$recipient = "mandi@shqiperia.com";
$subject = "Email nga Seksioni i Sportit";
$mailheaders = "Nga webi";
$mailheaders .= "Reply-To: $email";
?>
function show_form($first="", $last="", $email="") {
?>
}
if(!isset($first)) {
show_form();
}
elseif(!$email == "" && (!strstr($email,"@") || !strstr($email,"."))) {
echo "Ju lutem shkruani nje adrese te sakte emaili\\n";
show_form($first,$last);}
else
{
if(empty($first) || empty($last) || empty($email))
{
echo "Nuk keni plotesuar fushat e kerkuara, provojeni serish \n";
show_form($first,$last,$email);
}
else {
echo "Faleminderit, $first , do shohim munėsinė e publikimit tė lajmit tuaj";
mail($recipient, $subject, $msg, $mailheaders);
}
}
?>
|