set('id', $id); $r->set('table', 'clients'); $r->set('phone', 'phone'); $r->set('force', array("reason_weight_flg", "reason_busy_flg", "reason_gift_flg", "reason_special_diet_flg", "goal_weight_mgmt", "goal_maintain_weight", "goal_eat_healthier")); $r->set('data', $in); $r->set('mode', "insert"); $id = $r->goRow(); require_once('AKI/mailer/AkiBase.php'); $api_key = API_AKI; $client_id = API_CLIENT_ID; $campaign_id = null; if($_POST['mailer']){ $cm = new AkiMailer( $api_key, $client_id, $campaign_id, MAILER_LIST_GENERAL ); $result = $cm->subscriberAddAndResubscribe("$input[email]", "$input[first_nm] $input[last_nm]"); } if($_POST['weekly_menu_flg']){ $cm = new AkiMailer( $api_key, $client_id, $campaign_id, MAILER_LIST_WEEKLY ); $result = $cm->subscriberAddAndResubscribe("$_POST[email]", "$_POST[name]"); } ob_start(); ?>
Register Date:
First Name
Last Name
Phone
E-mail
   
Address
Where are you?
Your Birth Date $in['birth_month']) $age++; echo " (Age: " . $age . ")"; ?>
How did you hear about us?
Reason for choosing us?
Busy Lifestyle Gift to new parents
Weight Management Special Diet
  Other:
   
Personal Goals
Weight Management
Maintain Weight
Eat Healthier
   
Food Allergies or Dietary Restrictions
From = "amy@saysheate.com"; $mail->FromName = "Say She Ate Registration"; $mail->AddAddress("amy@saysheate.com"); $mail->WordWrap = 72; // set word wrap $mail->IsHTML(true); // send as HTML $mail->Subject = "New Registration: $in[first_nm]"; $mail->Body = "$msg"; $mail->Send(); $_SESSION['new_register_id'] = $id; header("Location: /register/complete"); exit; }else{ $formError = $validate['errors']; $default = $input; $_SESSION['UserMessage'] = "Some required information is missing."; } }else{ $default = array( "height" => 60 ); } ?>
 
   
First Name*
Last Name*
Phone*
E-mail*
   
Address
Where are you? setName("area_id"); $c->setDefault($default['area_id']); $c->setOption(array("0", "")); $c->selectData(dbSelect("SELECT id AS value, category_nm AS name FROM categories WHERE type_cd = 'area' ORDER BY category_nm")); $c->printSelect(); ?>
 
The following information is required for calculating the portion size of your meals
   
Your Birth Date* setName("birth_month"); $c->setDefault($default['birth_month']); $array = array(); $array[] = array("", ""); for($i = 1; $i <= 12; $i++){ $name = date("F", strtotime("2000-$i-01")); $array[] = array("$i", "$name"); } $c->setOptions($array); $c->printSelect(); $c = new Select; $c->setName("birth_day"); $c->setDefault($default['birth_day']); $array = array(); $array[] = array("", ""); for($i = 1; $i <= 31; $i++){ $array[] = array("$i", "$i"); } $c->setOptions($array); $c->printSelect(); $c = new Select; $c->setName("birth_year"); $c->setDefault($default['birth_year']); $array = array(); $array[] = array("", ""); for($i = date("Y") - 10; $i >= date("Y") - 100; $i--){ $array[] = array("$i", "$i"); } $c->setOptions($array); $c->printSelect(); ?>
How did you hear about us? setName("how_hear"); $c->setDefault($default['how_hear']); $c->setOption(array("0", "")); $c->setOption(array("Search Engine", "Search Engine (Google, Bing)")); $c->setOption(array("Friend", "Friend")); $c->setOption(array("Radio", "Radio")); $c->setOption(array("Newspaper", "Newspaper")); $c->printSelect(); ?>
Reason for choosing us?
/> Busy Lifestyle /> Gift to new parents
/> Weight Management /> Special Diet
  Other:
   
Personal Goals
/> Weight Management
/> Maintain Weight
/> Eat Healthier
   
Food Allergies or Dietary Restrictions
 
 
/> Please keep me up to date with Say-She-Ate news and fun recipes.
 
/> Send me the Supper Club weekly menu.

We will get back to you within 2 business days.

set('topCode', ""); $c->set('text', $text); $c->set('col', 1); $c->printGo(); $leftCol = ob_get_contents(); ob_end_clean(); /***************** LEFT SIDEBAR END */ /***************** MAIN */ ob_start(); include 'tpl_rightCol.php'; $mainCol = ob_get_contents(); ob_end_clean(); /***************** MAIN END */ $layout = new Layout; $layout->setParam("leftCol", $leftCol); $layout->setParam("mainCol", $mainCol); $layout->twoCol(); ?>