like instead of info@me.ca
it puts
soul3438@fugit.dnsbox16.com
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>TECH-DESIGN CONTACT</title>
</head>
<body>
<?php
$nasaadresa = "techker@gmail.com"; //please replace this with your address
$mail = $_POST['Email'];
$porukaa = $_POST['Message'];
$poruka = str_replace("\r", '<br />', $porukaa);
//START OF THANKS MESSAGE
//you may edit $thanks message. this is a message which displays when user sends mail from your site
$thanks = "
<p align='left'><br>
<b>Votre message est envoyer!<br></b>
#### MESSAGE ####
<br><br>
$poruka
<br><br>
<br><br>
Vous allez recevoir une copie dans votre courriel <b>($mail).<br>Merci<br></b></p>";
//do not edit nothing below this line until comment (ME) say so if you don't have skills with PHP
//END OF THANKS MESSAGE
if($_POST['submitform'])
{
$Name = $_POST['Name'];
$Email = $_POST['Email'];
$Message = $_POST['Message'];
$require = $_POST['require'];
$browser = $HTTP_USER_AGENT;
$ip = $_SERVER['REMOTE_ADDR'];
$dcheck = explode(",",$require);
while(list($check) = each($dcheck))
{
if(!$$dcheck[$check]) {
$error .= "Erreur(s): <b>$dcheck[$check]</b>.<br>";
}
}
if ((!ereg(".+\@.+\..+", $Email)) || (!ereg("^[a-zA-Z0-9_@.-]+$", $Email))){
$error .= "Erreur.<br>Le courriel <b>$Email</b> - est pas valide.";
}
if($error)
{
echo $error;
echo '<br><a href="#" onClick="history.go(-1)">Retour.</a>';
}
else
{
//START OF INCOMING MESSAGE (this message goes to your inbox)
$message = "
De: $Name:
Courriel: $Email
Message: $Message
-----------------------------
IP: $ip
";
//END OF INCOMING MESSAGE (this message goes to your inbox)
$subject = "Message Soulfitness.ca - Par $Name"; //subject OF YOUR INBOX MESSAGE sent to you
$subject2 = "Merci!"; //subject of OUTGOING MESSAGE - edit this
//OUTGOING MESSAGE TEXT
$message2 = "Merci de Soulfitness.ca:
-----------------------------
De: $Name:
Courriel: $Email
Message: $Message
-----------------------------
";
//END OF outgoing MESSAGE
mail($nasaadresa,"$subject","$message","De: $Name <$Email>");
mail($Email,"$subject2","$message2","De: <$nasaadresa>");
echo "$thanks";
}
}
else{
//this is contact form down here, please edit if you know what are you doing... or the contact form may not be working.
echo '
<form name="contactform" action="'.$PHP_SELF.'" method="post">
<input type="hidden" name="require" value="Name,Email,Message">
<table width="450" align="center">
<tr>
<td colspan="2" align="center">
<p></td>
</tr>
<tr>
<td valign="top" align="right"><b>Nom:</b></td>
<td valign="top">
<input name="Name" size="30">
</td>
</tr>
<tr>
<td valign="top" align="right"><b>Courriel:</b></td>
<td valign="top">
<input name="Email" size="30">
</td>
</tr>
<tr>
<td valign="top" align="right"><b>Message:</b></td>
<td valign="top">
<textarea name="Message" rows="5" cols="25"></textarea>
</td>
</tr>
<tr>
<td colspan="2" align="center"><p align="right"><br>
<input type="submit" value="Send" name="submitform">
<input type="reset" value="Reset" name="reset"></p>
</td>
</tr>
</table>
</form>';
}
?>
</body>
</html>


Sign In
Create Account


Back to top









