This doesn’t really seem to be a WP question, but: as far as PHP goes, the function you’re looking for is checkdate(). That said, you really should also do something client-side (that is, JS) for the user.
Related Posts:
- How to correctly submit a search form and display the result in an independent page
- How to handle a custom form in wordpress to submit to another page?
- Removing WordPress profile fields from non-admins
- Trying to update Woocommerce meta values
- Metabox repeating fields – radio buttons not saving correctly
- How to exclude pages from the search results
- WooCommerce: How to display item meta data in email confirmation using woocommerce_order_item_meta_end
- How to use multiple query with same meta key
- How can i create a function to get youtube video time
- Geocoding an Exploded Custom Field Array
- Submitting form via admin-post.php and handling errors
- Custom WordPress+PHP+MYSQL+AJAX form, submit event not captured by Javascript, but does POST data to the DB
- Use ajax to update_post_meta
- Getting the dropdown menu to redirect to different pages?
- Processing a subscription form with POST method?
- If Meta Checkbox is checked, do something?
- Show custom field if it exists, and show different elements if it doesn’t
- Custom field value not saving when it contains a URL?
- Using Multiple Submit buttons to trigger customised php functions
- How do I let users upload files to a chosen location?
- tracking number field in Woocommerce order [closed]
- Sort posts by custom fields value using dropdown menu
- Filter Select results based on selection
- How can I reuse the code to capture a param in a URL and place in a value in a hidden form?
- How to limit the number of forgot password reset attempts in WordPress?
- How to retrieve current wordpress profile page URL?
- Seach custom post type posts only by meta fields?
- Ajax call return 404
- how to retrieve a value if a checkbox is checked
- Two queries for a WP_User_Query search work perfectly apart, but not together
- Show success or error messages in Ajax response to WordPress custom registration form
- conditional logic for front-end custom field edits
- Form Security: nonce vs. jQuery
- How to add specific meta tags to head of cart and checkout pages in woocommerce?
- Which PHP page is the Default Posts Page
- Find a way to retrive data updated through metabox plugin to web page
- How to execute html code inside php?
- Can a page contain php code?
- Show ACF field with link to ultimate member profile/WordPress user profile below the post (single post layout)
- What is the alternative code to if (isset ($_POST) && !empty ($_POST) to avoid warnings?
- Get wp_current_user_id using PHP and MySQL
- Adding Additional Variables on Menus Page
- PHP- Why is my contact form keep showing it is invalid? [closed]
- form $_post action value gets truncated after it passes through two forms
- Add a counter for mouseovers (custom field)
- Adding data to custom wordpress database table
- Show field if it has contents on Advanced Custom Fields
- the_meta – no get_the_meta query?
- Compare current post Category in select menu
- What should I write in the post action of this front end post form?
- Custom forms with HTML
- Display additional user fields
- Contact form – problem with displaying message about sent mail
- Dynamically added custom fields not displayed on WooCommerce email notifications
- How can I add diffrent editable text fields?
- Add a “custom field” to a category that can be retrieved when viewing the category page with get_post_meta
- Include custom fields in search
- WordPress Custom Form – Getting Query Vars, Weird Glitch?
- update_term_meta() only updating once on certain meta keys
- Form from within a page
- How to Call on WordPress Custom Fields without a Plugin
- I want to retrieve the email or username data entered for password reset, but failed. how can I do it?
- wordpress contact form messages not sending although it saying they were sent successfully with this php code
- Generating 3 random numbers and saving them in database
- ACF – Can’t get custom post type by taxonomy
- How to add locations input to user profile?
- Using a PHP form, get the page title or any other element in the sent e-mail
- Save custom field on WP_List_Table
- form submission reverts to index.php template
- Reload page with a different shortcode when a user selects from a dropdown
- Following/Followers Users list Using Ajax Pagination inside Author Profile
- custom fields anchor points php
- Creating a WordPress addon for ContactForm7 submission (.XML file export)
- When working with a post, almost all wp_postmeta are deleted
- What syntax is this? “{{post.price}}”
- Updating Lat and Lng of posts automatically gives sporadic results
- Adding action item to admin users table and sending email
- How to get the first letter from custom field?
- Meta box not saving spaces
- Trying to display user meta by “name” – not by “ID”
- custom field meta-box with dropdown/autocomplete
- If Elseif Query
- Display default WordPress login/registration form into a modal window
- Trouble using wordpress functions in a pop-up modal form
- How to use custom fields to replace top-level parent title with an image using wp_list_pages?
- custom contact form no longer working (because of 3.2?)
- Correct Syntax for uploading files to custom directory in WordPress
- ajax form function error
- Display custom meta box in my template file
- Query posts by custom fields (object post)
- Send foreach $_post method to contact form 7 [closed]
- php inside HTML via shortcode? [closed]
- Too many if’s and else if’s ?? – Must be better way [closed]
- Advanced Custom Fields Show PHP in Text Areas
- Use HTML Form Data in PHP Function – WordPress Admin Page
- Contact form with dynamic dropdown and filter
- How do you create a front end form that enables the editing of member-specific custom fields in WordPress?
- Search custom post type posts only by meta fields?
- How to pass value to add_filter wpcf7_form_tag from another function?
- Bulk data save in custom table