<?php
$email1 = "streetracer@hotmail.it";
// Contact formname
$sme_form_c = "Contact form from www.marconoviello.tk";
// your site URL
$homepageurl = "http://www.marconoviello.tk";
// automatic message send to user send email
$tnk = " we recive your email now soon we send the solution";
// not change more anything
// not change more anything
// not change more anything
// not change more anything
// not change more anything
// not change more anything
?>
<script Language="JavaScript">
<!--
function checa_formulario(form){
if (form.Name.value == ""){
alert("Prego inserisci il tuo nome!");
form.Name.focus();
return (false);
}
if (form.sub.value == ""){
alert("rego inserisci il messaggio del soggetto!");
form.sub.focus();
return (false);
}
if (form.Message.value == ""){
alert("Prego inserisci il tuo messaggio!");
form.Message.focus();
return (false);
}
if (form.Email.value.indexOf('@', 0) == -1){
alert("Prego inserisci la tua e-mail!");
form.Email.focus();
return (false);
}
return (true);
}
//-->
</script>
<form method="post" action="" name='form' onSubmit='return checa_formulario(this)'>
<?php
$date = date("m/d/Y H:i:s");
if (!$_POST['sme_form']) { ?>
<table width="70%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="eeeeee">
<tr bgcolor="#FFFFFF">
<td width="30%"> <div align="center"><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>*Tuo nome:</FONT></div></td>
<td width="70%" > <input type="text" name="Name" size="40">
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="30%"> <div align="center"><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>*Tua e-mail:</FONT></div></td>
<td width="70%" > <input type="text" name="Email" size="40">
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="30%" ><div align="center"><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>*Soggetto del messaggio:</FONT></div></td>
<td width="70%"><input name="sub" type="text" size="40">
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="30%" ><div align="center"><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>*Messaggio:</FONT></div></td>
<td width="70%"><textarea name="Message" cols="40" rows="5" ></textarea>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="30%" nowrap><input type="hidden" name="sme_form" value="1"></td>
<td width="70%"><input type="submit" value="Inviare" name="submit">
<input type="reset" value="Cancellare" name="reset">
</td>
</tr>
</table>
</form>
<?php }
else
{
echo "<table width=100%><tr>
Grazie per averci contattato : $_POST[Name]!
<br><br>Noi ti contatteremo alla mail : <b>$_POST[Email]
</tr></table></center>";
mail("$email1", "$sme_form_c","
Messaggio inviato il $date
--------------------------------------------------------
Name : $_POST[Name]
Email : $_POST[Email]
Subject : $_POST[sub]
Message : $_POST[Message]
--------------------------------------------------------
Powered by cx.\n
Script by http://www.marconoviello.tk
","From: $_POST[Email]");
mail("$_POST[Email]","$homepageurl ", " $Name\n
---------------------------------------------\n
Dear:$_POST[Nome]\n
$tnk \n
---------------------------------------------\n
Powered by cx.\n
Script by http://www.marconoviello.tk","From: $email1");
}
?>