Quote:
|
Originally Posted by BlueBoden
You should really post some code we can have a look at.
|
Here it is (real email address replaced with
aa@bb.ccc)
You may see and
add submit your site website improve search engine ranking
<?php
$status = "OK";
$msg="";
$wmaster = "aa@bb.ccc";
if (strlen($realname) <2 ) { // checking your name
$msg .="Please enter your first and second name<BR>";
$status= "NOTOK";}
if (!stristr($email,"@") OR !stristr($email,".")) { // checking friends email
$msg .="Your Friends address is not correct<BR>";
$status= "NOTOK";}
if($status=="OK"){ // all validation passed
/////////// Sending the message starts here //////////////
$ref=@$HTTP_REFERER;
/////Message at the top of the page showing the url////
$h_message1 = "Request sent by $realname";
$h_message2 = "Email adress $email";
$h_message3 = "Titlu site $sitetitle";
$h_message4 = "Adresa Site $sitelink";
$h_message5 = "Description: $sitedescription";
$h_message6 = "Category $category";
$h_message7 = "New Category $newcategory";
$h_message8 = "Reciprocal: $linktous";
/// Body message prepared with the message entered by the user ////
$body_message =$h_message1."\n" . $h_message2."\n". $h_message3."\n". $h_message4."\n". $h_message5."\n".
$h_message6."\n" . $h_message7."\n"." "."\n". $h_message8."\n";
//// Mail posting part starts here /////////
$headers="";
//$headers = "Content-Type: text/html; charset=iso-8859-1\n".$headers;
// Un comment the above line to send mail in html format
$headers4=$email; // Change this to change from address
$headers.="Reply-to: $headers4\n";
$headers .= "From: $headers4\n";
$headers .= "Errors-to: $headers4\n";
$subject="Link exchange pentru 4myown.biz";
mail($wmaster,$subject,$body_message,$headers);
////// Mail posting ends here ///////////
echo "<font face='Verdana' size='2' color='#11486B'><b>Thank You $nume,</b><br>Your message has been sent to our staf
<br><br> Please <a href=$ref><b>Click Here</b></a> to go back</font>";
//////////// Sending the message ends here /////////////
}else{// display the error message
echo "<center><font face='Verdana' size='2' color=red>$msg</font></center>";
}
?>