check($_POST['imagetext']); if(!$valid) { $error = 1; $errstr[] = "The code you entered was incorrect"; } } if ($error == 1) { echo "
\n\n"; foreach($errstr as $err) { echo "
  • " . $err . "
  • \n"; } echo "
    \n
    \n
    \n\n"; showForm(); } else { @mail($to, " Subscription Request ", "\nDate:\t\t\t" . date("r") . "\nName:\t\t\t" . $_POST['name'] . "\nCompany:\t\t" . $_POST['company'] . "\nBusiness Type:\t" . $_POST['business_type'] . "\nBusiness Type 2:\t" . $_POST['business_type_other'] . "\nAddress:\t\t" . $_POST['address'] . "\nAddress 2:\t\t" . $_POST['address2'] . "\nCity,state,zip:\t" . $_POST['city'] . ", " . $_POST['state'] . " " . $_POST['zip'] . "\nEmail:\t\t" . $_POST['email'] . "\nPhone:\t\t" . $_POST['phone'] . "\nFax:\t\t\t" . $_POST['fax'] . "\nSubscribe to:\t" . $subscribe . "\nMessage:\n" . $_POST['message'] . "\n\n********** " . "\nHow did you hear about us?:\t" . $_POST['How_did_you_find_out_about_us'] . "\nHow did you hear about us? - other:\t" . $_POST['otherspecify']); echo "




    Thank You " . $_POST['name'] . ".
    We will review your subscription request and someone
    from our sales team will be in contact with you shortly.





    "; } } function showForm() { $_POST['comments'] = @htmlspecialchars(@$_POST['comments']); echo << Subscribe to Southern Jewelry News or Mid-America Jewelry News
     
    SJN / MAJN is a publication intended solely for jewelry professionals. Please fill out the request below to be considered for a free subscription.
    Thank you for your interest
     
     
    * Required fields
    Select the paper(s) you would like to subscribe to:
    Southern Jewelry News  
    Mid-America Jewelry News  
       
    Name*
    Company*
    Type of Business
    If other, please specify
    Address*
     
    City*
    State*
    Zip*
    Phone*
    Fax*
    Email*
    Message:
     


    How did you find out about us?


       
       
     

    For security purposes, please eneter the code below.



    EOD; } ?>