I will show you the option if you know about the handler functions in php then you can follow the following sequence:
1. Create a function to check the form submission request, after checking the code from the form form successfully, the function will send mail to the user.
2. The function sends mail to the user via smtp to process sending mail right after the successful form check.
3. The function saves the data you want to the database after checking the form.
You can create these steps through a form action in php, or create a function to use ajax. In addition to saving data to the DB, you can use functions in php or if using pure wordpress, you can use $wpdb->insert
https://developer.wordpress.org/reference/classes/wpdb/insert/
Related Posts:
- What characters are allowed in an email address?
- Sending form data via PHPMailer – How to action PHP script from a form
- Contact Form 7 not sending emails- no confirmation, no error [closed]
- Remove field in the form : only works for “url”, not for “email”?
- PHP form is not sending mail if I use mime type and version in header. How to solve this? [closed]
- Downloadable content only for subscribers?
- WordPress Emails & Contact Forms [closed]
- Saved emails at dashboard
- Email from my theme’s contact form doesn’t get the reply-to address right
- Email form getting hacked
- Am receiving more than thousand mails in single day from ‘[email protected]’ continuously
- Sending Form data as Attachment
- Sending email via function in page or setting up the action properly in another page
- Send contact form to a specific referrer-email adres
- Username from e-mail
- Send message to author without showing email address [duplicate]
- Submit button returns to index page instead of sending data
- Form that stores emails [closed]
- What is & used for
- How to define form action in JSF?
- Free or affordable OCR and ICR (handwriting recognition) SDK?
- How to include landing page with form submission?
- How to edit a user profile on the front end?
- How to display user registration form on front-end of the website?
- How to handle form submission?
- What is an easy way to display a front-end user registration form?
- Add error message on password protected page
- how to set from address according to the form input email address for wp_mail()?
- How to get current url in contact form 7
- Is wp_nonce_field vulnerable if you know the action name?
- How to pass on Google Adwords gclid variable to other pages
- using update_user_meta in form to set and get custom meta
- Best way to create multi-step form with data saved to user account for later updating?
- User registration problem in WordPress
- Creating a contact form without a plugin [closed]
- How to submit data from HTML form?
- Custom Registration Template/Page
- show image in mail contact form 7 [closed]
- Can I verify nonce which was generated on a different WP site?
- Submitting post to database then redirecting to paypal
- Registration form labels – add asterisk
- Autocomplete for taxonomy input boxes on a front end form
- How to create and retrieve data from a special registration form?
- Contact form 7 Dynamic text – placeholder on GET field
- Settings API erases itself?
- how to handle forms in multiple pages?
- set_query_var doesn’t seem to work on init hook
- How to send multipart form data to WordPress endpoint
- need to add attach thumbnail from my form
- Wp_mail Returning False on Server
- recommended practice for form submission
- Placeholders in Jetpack Contact Form [closed]
- How to update selective options on plugin settings page
- Built-in data validation function for URLs
- $_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
- Checkbox won’t check when label is clicked
- One comment per user per post
- How to sent one form values to 2 different sites in wordpress
- Looking for a simple approach for handling user $_POST data without AJAX?
- Trying to save and display a wp_editor()
- How to return variables from admin-post.php
- Help with verifying google recaptcha in a custom form
- Nonce actions and names available via open source
- Setting specific image size for specific form upload file field
- Duplicating/Cloning Multiple Form Fields
- Contact forms going into spam folder
- Get data from dropdown and update page
- Mail Form in a modal box without plugin
- Processing a subscription form with POST method?
- other shortcodes in Contact form 7 MAILS [closed]
- Obfuscating Email Addresses in Form Fields
- Using the WordPress selected() function
- Performing a POST action on homepage goes to posts page
- Add contact form
- How am I able to get the value out of cookie array when I push a button?
- 404 on form submit [duplicate]
- How to Process Form Request
- Form Processing
- Reset recaptcha contact form 7 [closed]
- Return to option page after running PHP script
- Saving checkbox/option list status?
- Is there an official email form widget or block?
- Customize reset password form redirect problem
- What is the valid phone number format accepted by contact-form-7 [closed]
- creating form for wp_remote_post
- How to implement post/redirect/get pattern on contact form
- How to know what submit button the user clicked?
- limit characters when posting from form
- Creating a custom multilingual form
- wordpress not displaying my form
- Adding data to an array in usermeta and displaying it in a loop
- Help with forms and nonces
- Send email button in custom post type backend
- Stripe Error: must provide source or customer [closed]
- How to submit form in a PHP file in WordPress?
- Hook into and send mail using WP Mail SMTP type plugin from HTML static front page?
- CRUD front end for mySQL in WordPress
- How to prevent page from resubmit on refresh when “Cannot modify header information – headers” warning shows