false, "email" => false, "message" => false ); $quirky = array("firstname" => false, "email" => false ); /*Check for spam the old fassioned way, using matches for to, cc, and bcc */ function spamcheck($field) { if(eregi("to:",$field) !== FALSE || eregi("cc:",$field) !== FALSE || eregi("bcc:",$field) !== FALSE ) //weve found something bad { return TRUE; } else { return FALSE; } if ( trim( $field ) == "" ){ return true; } else{ return false; } } /*Check the email using a regex, this pretty much makes the spamcheck function useless, but I'll leave it just in case */ function emailCheck($field){ if( (strpos($field,"@") === FALSE || strpos($field,".") === FALSE )) //not found - alert { return true; } else{ return false; } } /*Checks for an empty field */ function fieldcheck($field){ if ($field == "" ){ return true; } else return false; } /*Now go through the form values and look for empty or invalid values */ /* if ( fieldcheck($firstname) ){//blank first name $valid = "firstName"; $empty["firstname"] = true; } if ( preg_match( "(^[a-zA-Z-' ]+$)",$firstname) != 1 ){//quirky first name $valid ="quirkyFirstName"; $quirky["firstname"] = true; } if ( fieldcheck($lastname) ){//no last name $valid = "lastName"; $empty["lastname"] = true; } if ( preg_match( "(^[a-zA-Z-' ]+$)",$lastname) != 1 ){//quirky last last name $valid ="quirkyLastName"; $quirky["lastname"] = true; } if ( fieldcheck($email) ){//no email $valid = "email"; $empty["email"] = true; } if ( fieldcheck($message) ){//no message $valid = "message"; $empty["message"] = true; } if ( spamcheck( $email ) || emailCheck( $email ) == true ){ $valid = "spam"; $quirky["email"] = true; }*/ //if ( preg_match( "(^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$)", $email ) != 1 ){ // $valid = "invalidEmail"; // $quirky["email"] = true; //} //now if its the first time loading the form, all fields will be blank...do this so nothing is echo'd below if ( fieldcheck($message) ){ $valid = "FALSE"; } if ( preg_match("(^[0-9\.]*$)", $key ) != 1){ $valid = 'locked'; } //print_r(str_split(strtoupper($validation_entry))); if ( !validateEntry( str_split(strtoupper($validation_entry)), $key ) ){ $valid = 'locked'; } if ( $valid == "TRUE" ){//weve made it this far, valid everything, send me the mail $db = 'gcopeg_algo_writer'; $link = mysql_connect('localhost', 'gcopeg_algo', 'sEXG=m=IPP') ; if (!$link){ die('We apologize for the inconvenience. Our server is currently undergoing maintanance. Please check back again soon!'); } mysql_select_db($db , $link); mysql_query("INSERT into GeneCoderBugReports (email, IPAddress, BugTitle, user_name, bug_report, user_specific_platform) VALUES( '$email','$ip', '$title', '$firstname', '$message', '$platform' )") or die(mysql_error()); mysql_close($link); mail( 'copeg@sbcglobal.net', "GeneCoder Support Ticket", "A new support ticket has been received from \n$firstname\n$email.", "From: gregcope@algosome.com" ); header('Location: http://www.algosome.com/gene-coder/support-thanks.html'); exit(); } ?> Gene Coder Molecular Biology Software - Screenshots

GeneCoder Support

  • Report a Bug
  • Suggest a Feature
  • Suggest an improvement.
  • How do you like GeneCoder?

GeneCoder Support

To contact support for GeneCoder, please use the form below (all fields are required).

  • All comments and suggestions about GeneCoder are welcome. Have a question, suggestion, of other feedback? Please use the form below. If you wish to be contacted in reponse to this support query, please make sure your email is correct.
  • If you are reporting a bug, please be as specific as possible about your operating system and the problem encountered.
  • The information you provide below may be used to contact you for further information (please indicate if you do not wish us to contact you regarding this report) - this information will NOT be shared with third parties.

 

Incorrect image-text validation. Please try again.

'; }else if ( $valid != "TRUE" && $submitted ){echo '

Please enter a message.

';} ?>
Title
Name
*";}else{echo '>';} ?>Email
Comments
 
Please enter the letters and number in the text box below.
validate