\n"; $contact_content.=$contact_form; return false; } else { return true; } } } //get form data by "POST" $_POST['Title']; $_POST['First_Name']; $_POST['Last_Name']; $_POST['Company_Name']; $_POST['Business_Type']; $_POST['Address1']; $_POST['Address2']; $_POST['Address3']; $_POST['Town_City']; $_POST['County']; $_POST['PostCode']; $_POST['EMail']; $_POST['Website']; $_POST['Telephone']; $_POST['Fax']; $_POST['remoteip']; $_POST['Comments']; /* //Server-Side form testing if (isset ($_POST['First_Name'])) { if (isset ($_POST['EMail'])) { if (isset ($_POST['Comments'])) { $process_form = TRUE; } } } else { $process_form = FALSE; $errors.="Please supply all the fields
\n"; } */ $Process = 0; if (isset($_POST['First_Name'])) { $Process++; } if (isset($_POST['EMail'])) { if(Valid_Email($_POST['EMail'])) { $Process++; } } if ($Process == 2) { $process_from=true; } $firstname = $_POST['First_Name']; $email = $_POST['EMail']; $remoteip = $_POST['remoteip']; //test for form processing or form displaying if ($process_from) { $comma_separated = "\n\"".$firstname."\",\"".$email."\""; $filename = '_private/newsletter.csv'; $filepointer = fopen($filename, 'a'); fwrite ($filepointer, $comma_separated); fclose($filepointer); //Set email address to send form to $MailGroup.= "info@".$seoemail; //$MailGroup.= "chrisr@ukseo.com"; $to = $MailGroup; //Set email subject $subject= "NEWSLETTER SUBSCRIPTION from ".$seowebsite." - An SEO Directory Website"; //create message body $MsgText_head = "".$subject."
";
		$MsgText= "First Name:\t\t".$firstname."\n";
		$MsgText.= "Email:\t\t\t".$email."\n";
		$MsgText_footer="
"; //set message headers $headers ="MIME-Version: 1.0;\n"; $headers.="Content-type: text/html; charset=iso-8859-1;\n"; $headers.="From: ".$seowebsite." ;\n"; $MsgText = htmlentities($MsgText); $Message = $MsgText_head . $MsgText . $MsgText_footer; //send the email @mail($to, $subject, $Message, $headers); //confirm sending of email $contact_content.= "Your subscription has been sent.
\n"; $contact_content.= "Return to ".$seowebsite.".
\n"; //Clear all variables unset($firstname, $email); unset($_POST['First_Name'], $_POST['EMail']); } elseif ($remoteip == '') { //Clear all variables unset($firstname, $email); unset($_POST['First_Name'], $_POST['EMail']); //Default setting for page //get the form include 'newsletter_form.php'; $contact_content.=$contact_form; } else { //get the form include 'newsletter_form.php'; if ($Process == 3) { $errors.=""; } else { $errors.="Please complete all required fields (*).
\n"; } $contact_content.=$contact_form; } //Client-Side form validator $form_validator = " "; $MainContent = $form_validator; $MainContent .= $errors."
\n"; $MainContent .= $contact_content."
\n"; $pagename = "Newsletter"; $Page['title'] = ereg_replace("\.([A-Za-z]{3,4})", "", $pagename)." for ".ereg_replace("http://|http://www.", "", $SERVER).""; $Page['description'] =ereg_replace("\.([A-Za-z]{3,4})", "", $pagename)." for ".ereg_replace("http://|http://www.", "", $SERVER)." - Your source of valid search results"; $Page['keywords'] =ereg_replace("\.([A-Za-z]{3,4})", "", $pagename)." ".ereg_replace("http://|http://www.", "", $SERVER)." Games online games new games retail game"; ?> Sign up for our Home Shopping Online UK Newsletter
 

Home Shopping Online UK - Newsletter Signup

To subscribe to our 'Featured Site' Newsletter
(First entry in the Directory main page) Please enter your Email address in the box below. You will then receive their regular Newsletter and news of any available special offers.

Home Shopping Online UK • sitemap • top