<?php $s =& CSubscription::getInstance(); $subscriptions = $s->getSubscriptions($_USER_ID); $fv = new CFormValidator(); $fv->setForm('_subscriptionsForm'); $fv->addElement('email_1', 'Email', ' - Please enter at least one email address.', 'email'); $fv->setMaxElementsToDisplay(5); $fv->setDebugOutput(false); $fv->setFunctionName('_val_registration'); $fv->validate(); if (isset($_GET['message'])) { switch ($_GET['message']) { case 'added': $message = '<img src="images/icons/checkmark_16x16.png" class="png" width="16" height="16" hspace="5" align="absmiddle" />Email addresses have been added'; break; case 'deleted': $message = '<img src="images/icons/delete_16x16.png" class="png" width="16" height="16" hspace="5" align="absmiddle" />Email address has been deleted.'; break; } if ($message != '') { echo '<div class="confirm">' . $message . '</div>'; } } ?> <div class="f_12 bold"><img src="images/icons/network-wireless_22x22.png" class="png" width="22" height="22" align="absmiddle" /> Let others know when you add photos or create a slideshow</div> <div style="margin-left:25px; margin-top:25px;"> <div style="margin-bottom:5px;">When you add a photo or slideshow to your personal page the following people will receive an email.</div>
$paymentType = $_POST['ci_payment_type']; $street1 = $_POST['ci_street_1']; $street2 = $_POST['ci_street_2']; $country = $_POST['ci_country']; $city = $_POST['ci_city']; $state = $_POST['ci_state']; $zip = $_POST['ci_zip']; $acceptAgreement = 'true'; $fv = new CFormValidator(); $fv->setForm('_ciRegistration'); $fv->addElement('ci_category_type', 'How would you describe yourself as a photographer', ' - Please choose a category.', 'selectboxnull'); $fv->addElement('ci_public_name', 'Public Name', ' - Please must enter a public name.', 'length'); $fv->addElement('ci_camera_make', 'Digital Camera Make', ' - Please select a camera make.', 'selectboxnull'); $fv->addElement('ci_camera_model', 'Digital Camera Model', ' - Please enter a camera model.', 'length'); $fv->addElement('ci_camera_resolution', 'Digital Camera Resolution', ' - Please enter your camera resolution.', 'selectboxnull'); $fv->setMaxElementsToDisplay(10); $fv->setDebugOutput(false); $fv->setFunctionName('_val_registration'); $fv->validate(); $categoryArr = array('Amateur', 'Hobbyist', 'Prosumer', 'Professional'); $categoryTypes = '<select name="ci_category_type" id="ci_category_type" class="formfield">'; foreach ($categoryArr as $v) { $categoryTypes .= '<option value="' . $v . '">' . $v . '</option>'; } $categoryTypes .= '</select>'; $cameraMakeTypes = '<select name="ci_camera_make" id="ci_camera_make" class="formfield"> <option value="null"></option> <option value="Agfa" >Agfa</option> <option value="Argus" >Argus</option> <option value="BenQ" >BenQ</option> <option value="Bushnell" >Bushnell</option>