$artistid = $_GET["artistid"];
} else {
    if (isset($_POST["artistid"]) and $_POST["artistid"] != "") {
        $artistid = $_POST["artistid"];
    }
}
/*---------- Drop in a message to a vendor ------------*/
if (isset($_POST['txtaction']) && $_POST['txtaction'] == 'dropMessage') {
    $postStr = $_POST;
    $status = 0;
    $msg = NULL;
    $txtMessage = DbHelper::add_slashes($postStr["txtMessage"]);
    $subject = DbHelper::add_slashes($postStr["subject"]);
    $artistid = DbHelper::add_slashes($postStr["artistid"]);
    $contact_name = DbHelper::add_slashes($postStr["contact_name"]);
    $email_address = DbHelper::add_slashes($postStr["email_address"]);
    if (!isNotNull($contact_name)) {
        $message .= "* Contact name cannot be empty! <br>";
    }
    if (!isNotNull($email_address)) {
        $message .= "* Email address cannot be empty! <br>";
    } elseif (!preg_match("/^([a-zA-Z0-9])+([a-zA-Z0-9\\._-])*@([a-zA-Z0-9_-])+([a-zA-Z0-9\\._-]+)+\$/", $email_address)) {
        $message .= "* Email address cannot be invalid! <br>";
    }
    if (!isNotNull($subject)) {
        $message .= "* Subject cannot be empty! <br>";
    }
    if (!isNotNull($txtMessage)) {
        $message .= "* Message cannot be empty! <br>";
    }
    if ($message != "") {