include "/home/intsch/public_html/include/shared.inc.php";head("EN",'','','',1);head("EN",'Subscribe to the newsletter','','',2);?>
function form_block($error=''){global $HTTP_POST_VARS;?> Subscribe here for updates, news and special offers from The International School by email. Your privacy is important to us so your e-mail will not be given to anyone else and you can unsubscribe at any time. } $result=mysql_query("SELECT subscribed FROM newsletter_subscribers WHERE email='$HTTP_GET_VARS[email]' and id='$HTTP_GET_VARS[rid]'"); $row=mysql_fetch_array($result); if(($HTTP_GET_VARS[rid])&&(mysql_num_rows($result)>0)){ echo ''.$HTTP_GET_VARS[email].' "); }elseif(!check_email($HTTP_POST_VARS[email])){ form_block("Please enter a valid e-mail address! "); }else{ echo subscribe($HTTP_POST_VARS[email]); } } }?> |
|