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
- ajaxurl not defined on front end
- Where to store PHP files created by plugin / themes
- Handling results from data hooked into admin_post
- What is the real intention for admin-post.php?
- Default table collation on plugin activation?
- Understanding WordPress functions’ naming conventions
- Is there widely accepted phpDoc syntax for documenting which hook calls a function?
- Getting wrong relationship value in $args in wp_Query?
- How do I Make a Theme “plugin-ready”?
- How to Add a .js file Only in one specific Page Dynamically to Head
- What is the added “complexity” of custom tables?
- How to modify post content before writing to database?
- How to use filter hook ‘post_updated_messages’ in coherence with action hook ‘save_post’
- Add new user and add meta at once
- Custom user profile, registration, login page with theme
- What is better way to use Bootstrap inside admin panel?
- What’s the better way to add an inline script?
- Best Practices for Creating and Handling Forms with Plugins?
- Backslashes being stripped from CSS
- Finding the paragraphs in content
- Is Dreamweaver CS5 a serious choice for theme/plugin development?
- What allows a template file from plugin to be copied in child theme and overridden?
- How to avoid loading same script twice?
- Can I individually style items in the backend widget list?
- WordPress security issue to output data from user input from theme option form
- Finding posts containing matching array elements in a meta field usign WP_Query
- How to Create database table when Plugin installed/activated, and delete database when Plugin deleted
- Customizer: widget-synced triggers twice
- Change the ‘published on’ text?
- How to filter users list on user_status field with get_users()
- I’m designing a plugin to create database indexes. Suggestions?
- WordPress database error for query INSERT INTO
- How to connect to AWS RDS external database (not for the core WordPress db)
- How to add custom fields to the all users page
- Can Page Templates be Applied to Archive and Post Templates?
- Are there any scripts, classes, and/or functions built-in to WP for a plugin to export/import its saved data from wp_options?
- Is there some way to provide the user a list of existing content in a CPT
- Change the look and feel of admin pages
- How to access noticeOperations from withNotices
- How to get boolean value from register_meta properly?
- Notice: Trying to get property ‘term_id’ of non-object
- Updating Woocommerce Settings API when WordPress Settings API saved and vise versa
- What is the proper method of using global $post?
- 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?
- WordPress custom taxonomy check box to dropdown
- Selectively update themes in WordPress multisite
- Avoid updating post when sending POST or GET request to post.php
- Optimising a big WordPress site
- What is the best way to store a few fields?
- Alternative functions for mysql_free_result and mysql_ping in wordpress functions
- I am unable to save my data from a form
- Getting a WordPress Debug Strategy
- Conditional Generation of Image Sizes using add_image_size
- WP Still Generating 150×150 Thumbnail Size Even After Un-Setting Small Size in Functions.php
- Does WordPress default CSS have Grids?
- How to resize WordPress images on upload to specific height and width without cropping it
- How do I debug an error that a plugin is causing?
- Update plugin settings option_name for big plugin update
- WordPress database error: [Query was empty] – using $wpdb->prepare()
- rewrite_rules problem
- Why does website stretch and white space on load? [duplicate]
- Pass custom props to
- Include external po file for 3th party plugin to theme
- How to make premium plugin? I want to limit it until verification
- How to get inserted row IDs for bulk/batch insert with wpdb query?
- How to hide/remvoe unnecessary field/section in post edit section ( Dashboard )
- Using AJAX to submit and return data inside the WordPress Plugin Boiler Plate framework
- redirect_to how to make it simply work with get parameter or similar?
- Determine if the current page, is being edited
- How to store in the database directly the translation?
- How and when would I implement some code which would take data from one part of the Db and put it in another?
- Is it possible to modify an Elated plugin portfolio-list template in such a way that it will not conflict with future plugin updates?
- Woocommerce Custom Checkout
- Looping single post in a theme
- Acessing WP functions in form submission handler
- Associating special meaning with user id 0
- WordPress permalink setting
- Custom theme and plugin updating
- Adding class to the parent of current-post-ancestor / current-menu-parent / current-post-parent
- What method should I use to store my plugin data (multi level menus with options on each item)
- problem with blank page
- Best way to handle a form post in plugin
- grouping my widgets wordpress
- How to add additional field in a table row after creating a table?
- WordPress plugin tables become corrupt
- If I want to create new taxonomies (e.g. Project / Documents / Etc…) is it better to create them in the theme’s functions.php or within a plugin? [duplicate]
- How to add something after a function
- how many rupee or dollar charge to client to make theme [closed]
- Can I log the searches that are returning 404 in the DB?
- Programmatically creating posts based on external JSON feed (asynchronously)
- Remove Gutenberg Buttons Block