Front end submit form with jquery form plugin
Leave the action value as blank. Give the submit button a name as name=”form_sub”. Then add the following code to your functions.php file. Check the codex for init hook. You can create a ‘Thank You’ page, or a confirmation page where the user should go after successful submission. <?php add_action(‘init’, ‘form_submit’); function form_submit(){ if(isset($_POST[‘form_sub’])) { … Read more