true, "shipLnameOk" => true, "shipAddress1Ok" => true, "shipCityOk" => true, "shipStateOk" => true, "shipZipOk" => true, "shipEmailOk" => true, "shipCompanyNameOk" => true, "pubsOk" => true, "JTPreOk" => true, "JTPreOtherOk" => true, "BUOk" => true, "PNOk" => true, "PDOk" => true, "IDOk" => true ); // print_r( $_POST ); if( $_POST['subscribe'] ) { $_POST['netamt'] = "0.00"; $_POST['taxamt'] = "0.00"; $_POST['termunit'] = "M"; $_POST['term'] = "12"; $_POST['acctType'] = "C"; // if they said no to digital edition $_POST['emailoption3'] = "Yes"; if( empty( $_POST['DE'] ) ) { $_POST['DE'] = "N"; $_POST['emailoption3'] = "No"; } if( empty( $_POST['emailoption1'] ) ) { $_POST['emailoption1'] = "No"; } if( empty( $_POST['ship_fname'] ) ) { $check['shipFnameOk'] = false; } if( empty( $_POST['ship_lname'] ) ) { $check['shipLnameOk'] = false; } if( empty( $_POST['ship_address1'] ) ) { $check['shipAddress1Ok'] = false; } if( empty( $_POST['ship_city'] ) ) { $check['shipCityOk'] = false; } if( empty( $_POST['ship_state'] ) ) { if ( $_POST['ship_country'] == 'USA' ) { $check['shipStateOk'] = false; } } if( empty( $_POST['ship_zipcode'] ) ) { $check['shipZipOk'] = false; } if( $_POST['ship_email'] == $_POST['ship_email2'] ) { if( !checkEmailAddress( $_POST['ship_email'] ) ) { $check['shipEmailOk'] = false; } } else { $check['shipEmailOk'] = false; } if( empty( $_POST['ship_companyname'] ) ) { $check['shipCompanyNameOk'] = false; } if( $_POST['DP'] == "N" && $_POST['DM'] == "N" ) { $check['pubsOk'] = false; } if( sizeof( $_POST['JTPre'] ) < 1 ) { $check['JTPreOk'] = false; } else if( in_array( "99", $_POST['JTPre'] ) ) { if( empty( $_POST['JT_other'] ) ) { $check['JTPreOtherOk'] = false; } } if( empty( $_POST['BU'] ) == 1 ) { $check['BUOk'] = false; } if( empty( $_POST['PN'] ) == 1 ) { $check['PNOk'] = false; } if( empty( $_POST['PD'] ) == 1 ) { $check['PDOk'] = false; } if( empty( $_POST['IdentifierResponse'] ) == 1 ) { $check['IDOk'] = false; } $_POST['FM'] = $_POST['complimentary']; // set the vars to the same as shipping $_POST['bill_fname'] = $_POST['ship_fname']; $_POST['bill_lname'] = $_POST['ship_lname']; $_POST['bill_companyname'] = $_POST['ship_companyname']; $_POST['bill_address1'] = $_POST['ship_address1']; $_POST['bill_address2'] = $_POST['ship_address2']; $_POST['bill_city'] = $_POST['ship_city']; $_POST['bill_state'] = $_POST['ship_state']; $_POST['bill_zipcode'] = $_POST['ship_zipcode']; $_POST['bill_country'] = $_POST['ship_country']; $_POST['bill_email'] = $_POST['ship_email']; // check for errors if( in_array( false, array_values( $check ) ) ) { // our error checking has identified a problem, so we do nothing and let the page reload $hasErrors = true; } else // do stuff now { // we're all good, let's give them their new account $subscribed = true; unset( $_POST['cs_config_country_field'], $_POST['cs_config_state_field'], $_POST['cs_config_country_default'], $_POST['cs_config_state_default'], $_POST['shipCountryDefault'], $_POST['shipStateDefault'], $_POST['billCountryDefault'], $_POST['billStateDefault'], $_POST['ship_email2'], $_POST['subscribe'], $_POST['DE'] ); $_POST['addDate'] = date("Y-m-d"); $_POST['expireDate'] = date("Y-m-d", strtotime("+2 years 1 month")); $_POST['status'] = "I"; $subscription = new Subscription( NULL, $mysqli ); $subscription->setData( $_POST ); $subscription->save(); $accountNumber = $subscription->getId(); $firstName = $_POST['ship_fname']; sendSubscriptionEmail( "Diabetes Health Professional", "subscribe@diabeteshealth.com", $firstName, $lastName, $_POST['ship_email'], $accountNumber, false, null, null ); $isFullScreen = false; } } if( $_POST['ship_country'] == "USA" ) { $currentPricesArray = $subscriptionPrices['us']; } else if( $_POST['ship_country'] == "CAN" ) { $currentPricesArray = $subscriptionPrices['canada']; } else if( $_POST['ship_country'] == "MEX" ) { $currentPricesArray = $subscriptionPrices['mexico']; } else { $currentPricesArray = $subscriptionPrices['foreign']; } $section = new Section( -10101, "Subscribe to Diabetes Health Professional" ); $subSection = new Section( -10101, "Professional Subscription Application" ); include( $_SERVER['DOCUMENT_ROOT'] . "/includes/description.php" ); $htmlTitle = "Diabetes Health - Subscribe to Diabetes Health Professional"; $htmlDescription = "Diabetes Health - " . $description; include( $_SERVER['DOCUMENT_ROOT'] . "/header.php" ); ?>
Download Health Guides Now! Six Free Health Guides

Download your Six Free Health Guides Now!

Instantly downloadable health guides to get you on the right track!

Diabetes Health Professional What's in the Professional Subscription?
Diabetes Health Professional

Diabetes Health Professional

Each bi-monthly issue of Diabetes Health Professional is a self-contained handbook covering products, educational resources and the latest diabetes research, complimented by balanced editorial focused on medical news, drug prescription information, clinical practice recommendations and changing treatment options.

Each quarter we send you the latest, most updated research guides, product guides and educational resource guides available for you and your patients.

You might also be interested in these two additional free resources that are only available to health professionals like you: Diabetes Health magazine and our Free Copies for Patients Program.

Diabetes Health magazine

Diabetes Health magazine

Since 1991 Diabetes Health has been the leading independent resource for unbiased news, information, and education on the topic of diabetes self-care. Accurate and bold reporting on topics often considered controversial has made Diabetes Health highly respected in the diabetes community.

Diabetes Health is available free-of-charge to qualified U.S. medical professionals.

*/ ?>
Diabetes Health magazine

Free Copies for Patients Program

As a subscriber to either Diabetes Health magazine or Diabetes Health Professional you may request to be added to our list of medical professionals that would like to occasionally receive free copies of Diabetes Health magazine to distribute to your patients and clients.

There is no charge to you or your patients for this tremendous benefit.

We send boxes with 50 free copies of Diabetes Health magazine to professionals on a rotating basis.

Diabetes Health Digital Advantage

Digital Advantage™

This online version of Diabetes Health magazine, virtually identical to the bi-monthly Diabetes Health print magazine, has many additional useful features.

While the pages turn in a similar fashion to a magazine's, direct hot links lead to research articles, products and advertiser sites.

Access to the amazing Diabetes Health Digital Advantageā„¢ is through any web browser, so you can read the current issue of Diabetes Health magazine online wherever you are!

Diabetes Health Professional is brought to you from the publishers of Diabetes Health magazine and applies the same unbiased approach we have used for nearly 15 years to expand the knowledge and expertise of medical practitioners and clinical educators like you.


Please correct the errors marked below in red and try again...



style="color: red"> Address:
style="color: red"> City:
style="color: red"> State:
style="color: red"> Zip / Postal Code:
style="color: red"> Company Name:
style="color: red"> Email Address:
style="color: red"> Confirm Email Address:

The publisher reserves the right to serve only those individuals who meet the publication qualifications.