"; if(strlen($category) == 0) $errorstring .="You must choose a category.
"; if(strlen($joke) == 0) $errorstring .="You have not entered a joke.
"; if(strlen($youremail) < 9 || strlen($youremail) > 64) $errorstring .= "Please enter a valid email address.
"; else { $emailtail = strstr($youremail, '@'); if(!strstr($youremail, '@') || !strstr($emailtail, '.')) $errorstring .= "Please enter a valid email address.
"; } if(strlen($errorstring) == 0){ // add to pending $ip = GetHostByName($REMOTE_ADDR); $insert = mysql_query("INSERT INTO pendingjokes (category, joke, email, ip, dateadded) VALUES ('".formatField($category)."', '".formatField($joke)."', '".formatField($youremail)."', '".$ip."', NOW())"); if($insert) $showform = FALSE; } } ?>
Submit A Joke

Use the following form to submit a new joke to . Please use the search feature first to make sure the joke does not exist alreay.


0) echo "
Error(s) Found:

$errorstring


";?>
Your Email:
Joke Category:
Joke:
  


Your joke has been sent for approval and should appear on the site in 24 hours. Thanks again for your contribution to ".$site_name.".


submit another joke
home"; ?>