<div class="formsRight"> <input class="text-input" type="text" name="options[sendwithus_key]" id="sendwithus_key" value="'.array_get($_POST, 'sendwithus_key').'" autocomplete="off" /> </div> <br /> <div class="formsLeft">Tags:</div> <div class="formsRight"> <input class="text-input" type="text" name="options[sendwithus_tags]" id="sendwithus_tags" value="'.array_get($_POST, 'sendwithus_tags').'" autocomplete="off" /> </div> </fieldset> <fieldset class="mainFormHolder"> <legend>Other Settings</legend> <div class="formsLeft">Mails to send per script run:</div> <div class="formsRight"> <input class="text-input" type="text" name="options[mails_per_cron]" id="mails_per_cron" value="'.array_get($_POST, 'mails_per_cron').'" autocomplete="off" /> </div> </fieldset> <input type="hidden" name="_form_submit" value="1" /> <input type="submit" name="_submit" value="'.getLang('sform_savebtn').'" class="submitBtn ui-state-default" /> <input type="button" name="_cancel" value="'.getLang('sform_backbtn').'" class="submitBtn ui-state-default" onclick="location=\'mails_smtp_settings.php\';" /> </form> </div>'; return $pcontent; } page_header(); echo mailForm(); page_footer(); ?>
//printArray($_POST); //printArray($_GET); //exit(); $action = $_REQUEST['action']; unset($_REQUEST['action']); //exit("Error:: $action"); //multitablesubmit,multiinserts if ($action == 'load') { loadForm(); } elseif ($action == 'autoload') { autoloadForm(); } elseif ($action == 'mail') { mailForm(); } elseif ($action == 'dbmail') { saveToDB(); mailForm(); } elseif ($action == 'submit') { saveToDB(); } elseif ($action == 'delete') { deleteForm(); } elseif ($action == 'updatebyid') { updateFormById(); } elseif ($action == 'unique') { checkUnique(); } else { echo "Action Not Recognized"; } exit; function autoloadForm() { $dataPost = $_POST;