DataSys: Data-Intensive Distributed Systems LaboratoryData-Intensive Distributed Systems Laboratory

Illinois Institute of Technology
Department of Computer Science

Bug Reporting for CiteScholar

Try Again
"; $link = mysql_connect(':/home/kbrandst/thesock', 'bugReporter', 'meowmix') or die('Could not connect: ' . mysql_error()); $name = mysql_real_escape_string($_POST['fname']); $email = mysql_real_escape_string($_POST['email']); if (preg_match('/^.*@.*\..*/', $email) == 0){ die("Invalid Email Address" . $try_again); } $bugReport = mysql_real_escape_string($_POST['info']); $query = sprintf("Insert into citesearcher.bugs (name, email, bug_description)VALUES ('{$name}' , '{$email}', '{$bugReport}');"); mysql_query($query) or die('Failed to submit bug'); echo "

Thank you for posting

"; echo "Post Another Bug
"; mysql_close($link); } else { echo "
Name:
Email:

"; } ?>
Home