You have small mistake in your code. Use same variables in $data array
and storing form data. Change your code to this:
$data = array(
'name1' => $name,
'date1' => $date,
'email1' => $email,
'phone1' => $phone,
'message1' => $message
);
You have used $name
at one place and $name1
at another place below.
Related Posts:
- What for the tables ending with the meta used in database of wordpress?
- Plugin Development for registered users
- Is it necessary to do validation again when retrieving data from database?
- Save temporary registration data
- Use admin-post to submit form data to external database
- Form and database, plugin development
- Post data in wp-admin to external database
- Hook a search form anywhere on the site, using a custom plugin
- How to export post meta with images in wordpress
- Password field is empty when using wp_signon();
- Is using custom table to suit business needs instead of transients a big hit to page load speed?
- How to change title tag at page after loaded post?
- Following WordPress Markup Is mandatory, got awkward resultyby wordpress standard markup?
- How do I create plugin or theme using MVC pattern?
- Create custom HTML/JS app inside page
- How to limit number of number of categories displayed by categories widget
- Is there documentation reference for forms in menu and setting pages?
- PowerPress mobile media player
- Input in plugin widget does not allow spaces
- When is the proper time to minify css and js with git workflow?
- Strange Situation When Try To Retrieve Github Gist Using wp_remote_get
- How to hide or rename “X” and “x-child” references in website source?
- WordPress custom taxonomy check box to dropdown
- How to Get Current Custom Post Type Associated Taxonomy Term
- Plugin templates vs Parent Theme
- Selectively update themes in WordPress multisite
- Widget HTML Display Problem
- Avoid updating post when sending POST or GET request to post.php
- How to create a backend for a custom theme?
- Optimising a big WordPress site
- wpdb->prepare and mysql UPDATE – how is it done?
- wp_nonce_field displaying twice
- dbDelta SQL Query Not Working
- Warning: include(): https:// wrapper is disabled in the server configuration by allow_url_include=0
- dbDelta not installing database
- Plugin is not generating title tags on any pages or posts
- How to Control CSS of Admin On Creating only a Specific Custom Post Type
- Can’t change the style of a submit input type? [closed]
- admin_post equivalent for guest user?
- Make a plugin page out of influence of the theme’s style
- Update Data parameter of a wp_localize_script() call
- Custom entity search and display
- WP Plugin Running before jQuery
- Template directory in plugin
- What is the best way to store a few fields?
- Plugin: database creation
- Adding columns to core tables
- get_the_tags with separator control?
- How to query custom db table?
- How to only load css for used blocks on frontend
- Delete data from database using row action
- Show dynamic list of products from custom api of another database under same host
- 400 Bad Request, in wordpress theme development, wp_ajax
- How do I have now a duplicated user entry if this is not allowed (and I cannot replicate it)?
- How can I add a simple custom field to my plugin?
- Add child pages to submenu automatically
- Run JavaScript validation script on form submit in plugin
- Alternative functions for mysql_free_result and mysql_ping in wordpress functions
- Why in this archive page that call query_posts() function show only the last 10 posts?
- I am unable to save my data from a form
- my own SVN for a plugin/theme
- Issue on Setting $icon_url Parameter on WP add_menu_page()
- Why enqueue styles on hook?
- Make Database query only when option is updated
- The Correct Way to Use Nonce Field without Settings API
- Getting a WordPress Debug Strategy
- unable to wp_enqueue_script(‘suggest’);
- Drawing the line between theme & plugin on large scale bespoke projects
- Apply styles to blockquote element with the WYSIWYG editor
- How to add search form in main page body?
- PHP File_exist() not working – Checking if File Exist in WordPress Theme Directory
- Can we intercept user_login and user_pass from a wp_login_form?
- Why would you use esc_attr() on internal functions?
- Invalid hook call on save, not edit when using swiper slider
- How best to handle database version dependence (from $wp_db_version)
- Proper way to use useSelect
- Conditional Generation of Image Sizes using add_image_size
- How to add plugin options in wp editor page
- WP: Search and replace in DB programmatically
- Ajax: Populate with content from a post’s ID not working – duplicating current page html instead
- Using AND and bracket grouping in SQL not working
- How to make and save custom form in custom plugin page?
- How to find where an object first instantiatiation
- Gutenberg blocks error: Each child in a list should have a unique “key” prop
- Catching Form Submission in WordPress Admin Panel
- Two different wordpress sites – same server and IP address. Gaining Access to database 1 of 2
- Form using admin-post.php gives 404 after submission
- Full documentation about $args for register_rest_route?
- WP Still Generating 150×150 Thumbnail Size Even After Un-Setting Small Size in Functions.php
- modify show UI of a registered taxonomy
- Using function from enqueued .js file in theme in plugin?
- Does WordPress default CSS have Grids?
- Using HTML links within translatable string
- How to resize WordPress images on upload to specific height and width without cropping it
- Plugin Development: Storing and Manipulating Data That Fits JSON in Database
- Submit form to a different PHP file in the same plugin folder
- What might be the reason of Couldn’t fetch mysqli_result on another domain?
- Create fixed static pages
- How to get terms for taxonomy
- A function that will remove HTML and tags from a string?