Our Site URL not present'; } else if($name == '') { $msg = 'Please enter your name'; } else if($email == '') { $msg = 'Please enter your email'; } else if(!eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$",$email)) { $msg = 'Please enter valid email'; } else if($title == '') { $msg = 'Please enter website title'; } else if(strlen($title) >= 100) { $msg = 'Website title cannot be more than 100 characters.'; } else if($alt != '' && strlen($alt) >= 100) { $msg = 'Website alt cannot be more than 100 characters.'; } else if($mainurl == 'http://' || $mainurl == '') { $msg = 'Please enter website URL'; } else if($mainurlcheck != 'http://') { $msg = 'Please let the http:// remain before the website url'; } else if($maincountrow > 0) { $msg = 'The main site URL provided already exists'; } else if($url == 'http://' || $url == '') { $msg = 'Please enter website URL where our link is present'; } else if($urlcheck != 'http://') { $msg = 'Please let the http:// remain before the url'; } else if($countrow > 0) { $msg = 'The URL where our link present already exists'; } else { if(@url_exists($url)) { $file = file_get_contents($url); if(!stristr($file,$site_url)) { $msg = 'Our URL does not exist in your site'; } else { $insql = "INSERT INTO `link_exchange` SET name='$name',email='$email',website_title='$title',website_url='$url',websiteurl='$mainurl',`website_alt`='$alt',website_desc='$description',site_url='$site_url',status='inactive'"; if(mysql_query($insql) or die(mysql_error())) { $msg = 'Your link added successfully. Waiting for Admin approval.'; $name = ''; $email = ''; $title = ''; $mainurl = ''; $url = ''; $alt = ''; $description = ''; } } } else { $msg = 'URL doesnot exist'; } } } ?> Web Design Add Link | Web Development Add Link | Web Design Add URL

-Freelance Graphic Designer

 
Email: pauldesign.online@gmail.com | Follow me on: twitter
Infoway India Pvt. Ltd.';?>