$name);
if(DataCheck($input)){
if(!db_connect()) {echo 'The database is currently down. We apologise, please try again later. '; exit;}
$table = 'dv_marketing';
$input[email] = $email;
$input[remote_addr] = $GLOBALS[REMOTE_ADDR];
if(table_INSERT($table,$input)){
$entry='
Thank you '.$name.' . You have successfully been entered onto the guest list for Disques Vogue\'s next groovy party... We will email you shortly with more details, and look forward to seeing you move to Disques Vogue at the next event. We will email you at:'.$email.' .
';
$update=1;
} else {$ewarning ='email already used in database. only one name per email allowed. ';}
}
} else {$ewarning.= 'email not valid. ';}
}
if(!$update) {
$entry= '
';
}
$body = '
Disquesvogue is here
';
echo $body;
} elseif ($_SERVER['HTTP_HOST']=="www.filmcrew.com") {
if($_POST[u]==''){
$body = '
Welcome to Filmcrew.com. This site is intended for film makers around the World. We need your help... Please write down your name and email, as well as the reason why you have come to Filmcrew.com (what services are you looking for).
';
} else {
if(EmailCheck($_POST[email])){
$input = array(name => $_POST[name], comment => $_POST[comment]);
if(DataCheck($input)){
if(!db_connect()) {
echo 'The database is currently down. We apologise, please try again later. ';
exit;
}
$table = 'fc_marketing1';
$input[email] = $_POST[email];
$input[remote_addr] = $_SERVER[REMOTE_ADDR];
if(table_INSERT($table,$input)){
$body.='
';
$d=1;
} else {
$warning .='We have not been able to update your information. We apologise , please try again later.
';
$d=1;
}
}
} else {
$ewarning.= 'email not valid.';
}
}
if(!$d){
$inputtable = '
';
} else {$inputtable = '';}
########################################
# #
# Programming Functions: #
# take place before any HTML is parsed #
# #
########################################
// Enter Java functions for Page
$form = 'UPDATE';
$roll = 'submit';
$rollname = 'advan';
$java = array(form=>$form,roll=>$roll,rollname=>$rollname);
define_java($java);
$contenthead = array (titlebar=>$titlebar,java_include=>$java_include,onload=>$onload);
HTMLHead($contenthead);
$warning = ''.$warning.' ';
##################################
# #
# HTML Document structure #
# #
##################################
$content[body] = $warning.$body.$inputtable;
HTMLDoc($content);
echo $htmlhead.$htmlbody;
}
?>