Incorrect verification code.

“;
}*/

if(trim($conference)==” || strlen(trim($conference)) < 1 ) { $error_msg.="

  • Please select the conference for which you are suggesting a session idea.
  • “;
    }

    if(trim($typeofPitch)==” || strlen(trim($typeofPitch)) < 15 ) { $error_msg.="

  • Please select an option for the type of pitch you are making.
  • “;
    }

    if(trim($sessTitle)==” || strlen(trim($sessTitle)) < 5 ) { $error_msg.="

  • Please recommend a session title.
  • “;
    }

    if(trim($pitch)==” || strlen(trim($pitch)) < 10 ) { $error_msg.="

  • Please provide us 2-7 paragraphs covering what you propose as a suggested session or topic.
  • “;
    }

    $error_msg = stripslashes($error_msg);

    //connect to db
    $db = mysql_connect (“localhost”, “speakers”, “82smp1ch”);
    mysql_select_db (“speakers”, $db);

    if ($conference != ”) {
    $sql = “select name from shows where (id = $conference)”;
    $rsSql = mysql_query($sql, $db) or die(mysql_error());
    while($rowSql = mysql_fetch_array($rsSql))
    { $show = “{$rowSql[‘name’]}”; }
    }

    // no errors? proceed to other processing
    if($error_msg==” && $title != ‘good site’ && $sessTitle != ‘good site’) {

    // insert into db

    $insert_entry =”insert into session_ideas (ideaFirstName, ideaLastName, ideaCompany, ideaEmail, ideaCCEmail, ideaDescription, showId, entry_date, ideaTitle, likeToSpeak, typeofPitch) values (‘$firstName’, ‘$lastName’, ‘$company’, ‘$email’, ‘$ccEmail’, ‘$pitch’, ‘$conference’, ‘$entry_date’, ‘$sessTitle’, ‘$speak’, ‘$typeofPitch’)”;

    mysql_query($insert_entry) or die(mysql_error());

    $newMessage = “

    Thank you for suggesting the session “.$sessTitle.” for “.$show.”.

    Once the agenda is posted, the speaking pitch form will also be posted shortly thereafter and if you would like to, you can then pitch to speak on specific sessions. You will not receive any notifications about the session idea you submitted so please check back once the agenda is posted.

    “;

    } else {

    if($error_msg !=”) {

    //errors? give em message and send em back
    $newMessage =”

    ERROR! Missing required information. The following items are either incorrect or missing.

    Please go back and complete all required fields for form submission.

      $error_msg

    “;

    } else {
    if($title == ‘good site’ || $sessTitle == ‘good site’) {

    $newMessage = “

    Thank you for suggesting the session “.$sessTitle.” for “.$show.”.

    Once the agenda is posted, the speaking pitch form will also be posted shortly thereafter and if you would like to, you can then pitch to speak on specific sessions. You will not receive any notifications about the session idea you submitted so please check back once the agenda is posted.

    “;
    }
    }

    }
    ?>

    Session Idea Submission