break; } break; case 'task': editTask($option); break; case 'member': default: switch ($task) { // Now separating New Member from Edit Existing; for MailChimp case 'add': case 'new': addMember($option); break; default: editMember($option); break; } break; } break; case 'editTransaction': editTransaction($option); break; case 'viewMemberMailChimpInfo': viewMemberMailChimpInfo($option); break; case 'editMailingListSubscription': editMailingListSubscription($option); break; case 'edittask':
<?php require_once dirname(__FILE__) . '/../function/func_member.php'; echo '<pre>'; print_r($_POST); echo '</pre>'; $idmember = $_GET['idmember']; $name = $_POST['name_member']; $lastname = $_POST['lastname_member']; $password = $_POST['confirm_password']; if (!checkDuplicateMember($name, $lastname)) { $checkEdit = editMember($name, $lastname, $password, $idmember); if ($checkEdit) { header("location: ../membership.php?action=editMemCompleted"); } else { header("location: ../membership.php?action=editMemError"); } } else { header("location: ../membership.php?action=editMemDuplicateError"); }