<?php /* * form_specialistDealer.php * */ if (isset($_REQUEST['us']) && $_REQUEST['us'] == 1) { printforUS(); } else { if (isset($_REQUEST['specialistDealer']) && $_REQUEST['specialistDealer'] != 0) { $specialistDealer = 1; } printforInt($specialistDealer); } function printforUS() { ?> <input name="specialistDealer" type="hidden" value="0" /> <?php } function printforInt($specialistDealer = null) { ?> <div class="label">Specialist Dealer: </div> <div class="formInput"> <input name="specialistDealer" type="checkbox" value="1" <?php if (isset($specialistDealer)) { echo 'checked="checked"'; } ?> ></input>
<?php /* * form_distributor.php * */ if (isset($_REQUEST['us']) && $_REQUEST['us'] == 1) { printforUS(); } else { if (isset($_REQUEST['distributor']) && $_REQUEST['distributor'] != 0) { $distributor = 1; } printforInt($distributor); } function printforUS() { ?> <input name="distributor" type="hidden" value="0" /> <?php } function printforInt($distributor = null) { ?> <div class="label">Distributor: </div> <div class="formInput"> <input name="distributor" type="checkbox" value="1" <?php if (isset($distributor)) { echo 'checked="checked"'; } ?> ></input>
<?php /* * form_elite.php * */ if (isset($_REQUEST['us']) && $_REQUEST['us'] == 1) { if (isset($_REQUEST['elite']) && $_REQUEST['elite'] != 0) { $elite = 1; } printforUS($elite); } else { printforInt(); } function printforUS($elite = null) { ?> <div class="label">Elite Partner:</div> <div class="formInput"> <input name="elite" type="checkbox" value="1" <?php if (isset($elite) && $elite == 1) { echo 'checked="checked"'; } ?> ></input> </div> <br /><br /> <?php } function printforInt() {