|
3. Hypertext
XtremeWebSolution.net,
Indonesia Web Hosting and Web Design Service Provider Located in
Bali and Malang
Add Your Site to XtremeWebSolution.net Link Exchange Program
include "db.php";
if (isset($add))
{
if ($title=="")
$error="Title Site Empty";
if ($description=="")
$error="Description Site Empty";
if ($your_url=="http://")
$error="Your Site URL Empty";
if ($mylink=="http://")
$error="My Link in your Site Empty";
if ($selcat=="0")
$error="Please Select Category";
if ($contact_name=="")
$error="Email Empty";
if ($contact_email=="")
$error="Email Empty";
if (!ereg("^.+@.+\\..+$", $contact_email))
$error="Incorrect Email";
if ($error!="")
{
echo " ";
echo ("");
echo "";
}
else
{
$select="select url from link where url='$your_url'";
$result = mysql_query($select) or die("gagal query");
$row = mysql_fetch_array($result);
$num = mysql_numrows($result);
if ($num == 0) {
$ada = "0";
}
else {
$ada = "1";
echo "Add Link Exchange Not Success, Your Website $your_url already exist";
}
if ($ada == 0)
{
print ("Add Link Success ");
print ("We will review your Link and We will contact you via email shortly");
print (" \n");
$date=date("Y-m-d h:i");
$aktifasi="no";
$insert="INSERT INTO link (url,mylink_url,title,description,contact_name,email,postdate,display,idcategory) VALUES ('$your_url','$mylink','$title','$description','$contact_name','$contact_email','$date','$aktifasi','$selcat')";
if (!mysql_query($insert,$koneksi))
{
echo mysql_error();
exit();
}
$emailto = "irfani_f@yahoo.com";
$sfrom = "$contact_email";
$subject = "Link exchange Request For XtremeWebsolution.net";
$sheader="From:".$sfrom."\nReply-To:".$sfrom."\n";
$sheader=$sheader."X-Mailer:PHP/".phpversion()."\n";
$sheader=$sheader."Mime-Version: 1.0\n";
$sheader=$sheader."Content-Type: text/html";
mail("$emailto", "$subject", "Link Exchange Request With data follow:
====================================
Title Site : $title
Description : $description
URL Site : $your_url
URL My Link : $mylink
Contact Name : $contact_name
Contact Email : $contact_email ","$sheader");
}
}
//else
//{
//print ("Pendaftaran Gagal");
//}
}
?>
View List of Link Exchange |
|