$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.'.
Finish
'; $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
'.$ewarning.'
'.$warning.'
'.$entry.'
'; 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.='
Thank you '.$_POST[name].'. We have successfully received your information.

We will email you shortly to notify you of whether you have received a free membership to the site.

The information you entered is as follows:

Your email was recorded as '.$_POST[email].'.

Your reason for visiting Filmcrew.com was as follows:

'.$_POST[comment].'

'; $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 = '


name '.$fail[name].'
email '.$ewarning.$fail[email].'
why are you here?
'.$fail[comment].'

Submit to Filmcrew.com
'; } 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; } ?>