WEBSITE ADDRESS ALREADY LISTED!

"; print "

The website address (".$_POST['websiteurl'].") already has an entry in our directory.

"; } else { //Three parts to the querystring: q is address, output is the format, key is the GAPI key $key = "ABQIAAAAZZGbKsJTcPN7W4wFvac-nxSbGboisvAmH0_w-31eDHGluWiMyBQxNgbq-cWG9gGPGcd8hcra4uFv9g"; $address = urlencode("".$_POST['companypostcode'].", ".$_POST['companycountry'].""); //If you want an extended data set, change the output to "xml" instead of csv $url = "http://maps.google.com/maps/geo?q=".$address."&output=csv&key=".$key; //Set up a CURL request, telling it not to spit back headers, and to throw out a user agent. $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_HEADER,0); //Change this to a 1 to return headers curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $data = curl_exec($ch); curl_close($ch); if (strstr($data,"200")) { $data = explode(",",$data); $precision = $data[1]; $latitude = $data[2]; $longitude = $data[3]; } else { $geoerror = "Error in geocoding!"; } if(isset($geoerror)){ $postcodeerror = "Please enter a valid postcode"; } else { $AdvertText = addslashes($_POST['adverttext']); $CompanyName = addslashes($_POST['companyname']); $ServiceLocation = addslashes($_POST['servicelocation']); $TradingName = addslashes($_POST['tradingname']); mysql_connect($server, $DBusername, $DBpassword) or die ("$DatabaseError 1001"); mysql_select_db($database); mysql_query("INSERT INTO $DirectoryTable ( id, category, adverttext, websiteurl, servicelocation, locationtype, tradingname, contactname, companyname, companyaddress, companycounty, companydistrict, companytown, companycountry, companypostcode, telephone, email, dateadded, showonline, lat, lng ) VALUES ('', '".$_POST['category']."', '$AdvertText', '".$_POST['websiteurl']."', '$ServiceLocation', '".$_POST['locationtype']."', '$TradingName', '".$_POST['contactname']."', '$CompanyName', '".$_POST['companyaddress']."', '".$_POST['companycounty']."', '".$_POST['companydistrict']."', '".$_POST['companytown']."', '".$_POST['companycountry']."', '".$_POST['companypostcode']."', '".$_POST['telephone']."', '".$_POST['email']."', '$DateRegistered', 'N', '$latitude', '$longitude' )") or die ("$DatabaseError 1042"); $SubmitSuccess = "Y"; $email = $account['email']; $text = " ------------------------------------------ LandlordZONE Free Directory Entry Email: ".$account['email']." ------------------------------------------ A user has registered for a free directory entry. "; ## STRIP OUT THE UNWANTED CHARACTERS INCASE ANY APPEAR $subject = "LandlordZONE Free Directory Entry:"; $text = stripslashes($text); @mail("editor@landlordzone.co.uk, $email", $subject, $text, "From: "); } } } } else { $errore = 1; } } else { $errore = 1; } } if(!isset($_SESSION['captcha'])){session_register('captcha');} $PHP_SELF = $_SERVER['PHP_SELF']; $stringa = ''; $cifre = 5; for($i=1;$i<=$cifre;$i++){ $letteraOnumero = rand(1,2); if($letteraOnumero == 1){ // lettera $lettere = 'ABEFHKMNRVWX'; $x = rand(1,11); $lettera = substr($lettere,$x,1); $stringa .= $lettera; } else { $numero = rand(3,7); $stringa .= $numero; } } $_SESSION['captcha'] = $stringa; ?> Free Entry - LandlordZONE Directory of Rental Property Services

Free Directory Entry

$postcodeerror

"; } ?>

The code you inserted was not correct.
Please scroll down and enter a new verification code.
.

Thank You

Your free listing has been submitted for approval. Please ensure that you have added our link on your website.

"; print "

In the meantime, please continue to browse our website.


"; } else { ?>

FREE entry in our Directory of Rental Property Services

 Complete and submit this form

Trading Name:

Category:

Contact Name:    
Telephone:    
 E-mail  Web Site: ">
 

Advertisement for your product or service (25 words max):

Where do you offer the service? (e.g. Regional - East Anglia) plus any other instructions:
> Local > Regional > National (UK) > International > Overseas
 
Company Name: County/State:
Address: Country:
Address 2: "; } ?>Post/Zip Code:"; } ?> name="companypostcode" size="10" type="text" value="">
(Postcodes require a space)
Town/City:    
 

Please provide a Link Back to LandlordZONE

To submit your listing, please insert the code you see into the Code field below.
All letters you see should be inserted as CAPITALS

Resources
Advertisers