Add unique field in your form.
Eg: <input type="hidden" name="wdm_action" value="1">
Put your 'customer-details.php'
file code in below function:-
add_action('template_redirect','wdm_customer_details'){
//check if that field present in the form, if yes then perform the action
if(isset($_POST['wdm_action'] && $_POST['wdm_action'] != ''){
//customer-details.php file code
}
}
Related Posts:
- What is & used for
- How to include landing page with form submission?
- How to edit a user profile on the front end?
- Is wp_nonce_field vulnerable if you know the action name?
- Creating a contact form without a plugin [closed]
- How to submit data from HTML form?
- Autocomplete for taxonomy input boxes on a front end form
- Sending form data via PHPMailer – How to action PHP script from a form
- set_query_var doesn’t seem to work on init hook
- How to send multipart form data to WordPress endpoint
- Placeholders in Jetpack Contact Form [closed]
- $_POST empty on submit (same code, same form submits normally on local server)
- Gravity Forms skip form if already filled out using cookie?
- Loading scripts & styles from a meta box callback function
- Looking for a simple approach for handling user $_POST data without AJAX?
- How to return variables from admin-post.php
- Setting specific image size for specific form upload file field
- Get data from dropdown and update page
- Using the WordPress selected() function
- How to Process Form Request
- limit characters when posting from form
- Adding data to an array in usermeta and displaying it in a loop
- Help with forms and nonces
- How to submit form in a PHP file in WordPress?
- How to prevent page from resubmit on refresh when “Cannot modify header information – headers” warning shows
- WPForm, how to set date to tomorrow
- php form create 2 posts
- Create form on plugin options page that creates submenu pages for that plugin
- Creating a contact form with Laravel frontend
- Contact Form 7 – Add a Info Text to Checkboxes/Radiobuttons [closed]
- Make a form that will send email to all the authors in selected category [closed]
- How to make WordPress forms secure (HTTPS)
- Can you have more than one nonce on a page?
- Post submit using shortcode and init
- Password protected page with a form submits for me fine but for others redirects them back to the password prompt
- What form element names break wordpress?
- Remove field in the form : only works for “url”, not for “email”?
- I am trying to grab the title and put it in a paypal form select option
- How to add required fields in user profile admin page?
- Problem in getting Value through POST method after Login
- Java code/ JSP page in wordpress
- Should I use wp_nonce_field on my contact form?
- Form Submission Warning: Cannot modify header error only when plugin is deactivated
- Create a registration form with a PayPal checkout fee? [closed]
- Programmatically populate form fields with data
- advanced custom fields and contact form 7
- Stop SPAM from custom form
- Radio&Checkbox buttons Contact form 7 not clickable
- Complex Timesheet Form
- Custom tables and using wpdb to insert into DB from a html form
- Send value of PHP variable in template via hidden field in a form
- Saved emails at dashboard
- Fatal error: Call to undefined function wp_insert_post()
- WordPress Frontend Post Form (Bootstrap Modal) Not Creating Post
- How to use HubSpot Forms API in WordPress pages?
- Inquiry form like on URL [closed]
- Update user meta on custom wordpress form and redirect
- Headers already sent on a frontend post form using wp_redirect before get_header
- Contact form with Jquery and PHP don’t work
- Email from my theme’s contact form doesn’t get the reply-to address right
- Can I have two submit buttons in one form? [closed]
- Embed IPB forums to wordpress page
- how do i make the “contact us” on a page created not to display
- Where this validating message come from?
- How to add custom regex validation to WPForms password field
- Form Post / Session Variables not Working in Query with Pagination
- Email form getting hacked
- Submit Multi-Part Form After Each Part
- Populate a custom form with user data [closed]
- sending form with time interval
- How to redirect a Link to a new tab in contact form 7?
- how do I hide or encrypt query strings for gravity forms
- Why is my contact form not working?
- Save and retrive data from a custom form to database
- Using an iframe for a form help
- Reading POST over admin-ajax.php
- Auto Submit Contact Form 7
- Fatal Error with WP Forms
- How to call or add password input / generate password / password strenght meter in custom registration form?
- Need to show results on the frontend of an admin form
- fetch custom post if meta key exist
- Passing form data on submit
- Generating unique PDF download link after user input
- Create a custom calculator in wordpress
- How to stopping auto scrolling after submitting the form?
- Plugin to get a result based on form checkbox
- How to handle dynamic form data with repeating fields?
- Passing input value into name of input
- How to know if a tag has been added within a taxonomy?
- wp_insert_post with POST data
- How to add contact form instead of checkout
- Create register form plus send post
- Auto populate a Form
- Submit button returns to index page instead of sending data
- Order form for WP (similar to a wishlist) [closed]
- Adding Mailchimp API key dynamically
- WordPress – custom user flow registration approval
- Gravity form with paypal adon should return custom receipt
- I cannot enter the letter C in the form [closed]
- Add options to WordPress Blocks form dropdown field