Registration
All attendees must register prior to attending. Registration also grants attendees access to the conference wiki, to which they are invited to contribute.
//If we have been POSTED to, it should only be from a page within the bioc domain if (!empty($_POST)) { $valid_post_domain = "biocomplexity.indiana.edu"; //get the referer or die if (getenv('HTTP_REFERER')) { $refer = explode('/', getenv('HTTP_REFERER')); if (ereg($valid_post_domain, $refer[2])) { if (validate()) { process($_POST); header("Location: http://biocomplexity.indiana.edu/events/biocXI/thank_you.php"); } } else { echo "Invalid Referer"; print $refer[2]; die; } } else { echo "No Referer"; die; } } else { $todayis = getdate(); $day = $todayis[yday]; $year = $todayis[year]; #if ($day > 317 && $year >= 2010) { # header("Location: http://biocomplexity.indiana.edu/events/biocXI/regis_closed.php"); #} } ?> function db_connect() { //strictly speaking its silly that this is here, in principal we're getting rid of php soon so I dont care. // MySQL Server Connection Information $dbuser = 'biocomp'; $dbpass = 'Zahpqe0953'; global $link; $link = mysql_connect('localhost', $dbuser, $dbpass) or die("DB Access Error"); mysql_select_db('biocomp', $link) or die("Cannot connect to table"); } ?> function process($posted) { db_connect(); //create meal strings $fri = $_POST[fri_lunch] . $_POST[fri_diner]; $sat = $_POST[sat_bkfst] . $_POST[sat_lunch] . $_POST[sat_diner]; $sun = $_POST[sun_bkfst] . $_POST[sun_lunch]; $sql = mysql_query("INSERT INTO bioc11 (FirstName, LastName, Institution, Address, Country, Email, password, brief_stmnt, heard_abt, Fri, Sat, Sun) values('$_POST[FirstName]','$_POST[LastName]','$_POST[Institution]','$_POST[Address]', '$_POST[Country]', '$_POST[Email]', '$_POST[password]', '$_POST[brief_stmnt]', '$_POST[heard_abt]', '$fri', '$sat', '$sun');"); } ?> function validate() { global $errs; $errs = array(); if (!empty($_POST[FirstName])) { $FirstName = trim($_POST[FirstName]); }else{ $errs[FirstName] = "Please provide a first name"; } if (!empty($_POST[LastName])) { $LastName = trim($_POST[LastName]); }else{ $errs[LastName] = "Please provide your last name"; } if (!empty($_POST[Institution])) { $Institution= trim($_POST[Institution]); }else{ $errs[Institution] = "Please provide your institution"; } if (!empty($_POST[Address])) { $Address = trim($_POST[Address]); }else{ $errs[Address] = "Please provide your mailing address"; } if (!empty($_POST[Country])) { $Country= trim($_POST[Country]); }else{ $errs[Country] = "Please provide your country"; } if (!empty($_POST[Email])) { $Email = trim($_POST[Email]); }else{ $errs[Email] = "Please provide your email address"; } if (!empty($_POST[password])) { $password= trim($_POST[password]); }else{ $errs[password] = "Please create a password"; } if (!empty($_POST[brief_stmnt])) { $brief_stmnt= trim($_POST[brief_stmnt]); }else{ $errs[brief_stmnt] = "Please provide a brief statement of interests"; } if (!empty($_POST[heard_abt])) { $heard_abt = trim($_POST[heard_abt]); }else{ $errs[heard_abt] = "Please tell us how you heard about us"; } if (empty($errs)) { return 1; } else {return 0;} } ?>
![]() |
![]() |
Overview Abstracts Agenda Maps & Accomodations Contact Register Conference Wiki Conference Video |
« back to main page
RegistrationAll attendees must register prior to attending. Registration also grants attendees access to the conference wiki, to which they are invited to contribute. Registration Closes Nov 14th 2010 |