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
- How to fix ‘Notice: Undefined index:’ in PHP form action
- MySQL “Or” Condition
- How to update custom fields using the wp_insert_post() function?
- Most efficient way to add javascript file to specific post and/or pages?
- Display all values of custom a field created with ACF on a page
- How to stop form resubmission on page refresh
- Adding custom input for data attribute in insert media modal
- add_filter the_content str_replace after shortcode
- Genesis – Customize search form
- How to automatically apply woocommerce product title to all product images alt tags?
- Metabox repeating fields – radio buttons not saving correctly
- How to exclude pages from the search results
- How to insert PHP code in a WordPress Post
- Inserting Gravity Form checkbox values into Advanced Custom Fields [closed]
- If Custom Field is empty don’t display div
- Has anyone tried putting PHP ActiveRecord on WordPress?
- How to display multiple Post meta_key/meta_values by SQL query
- Custom Meta Field – Youtube embed
- WooCommerce: How to display item meta data in email confirmation using woocommerce_order_item_meta_end
- How to make an meta_query optional?
- How to use multiple query with same meta key
- Handling error states with admin_post
- Creating wordpress user registration form
- How can i create a function to get youtube video time
- Getting movie and serial on actor page
- How to loop over custom fields in a page template?
- Add custom field to attachments in a specific category
- Match checkbox data with page title to show certain items
- Creating a WordPress form with a PHP script and default header
- On update to 3.04 site started recording accents as “á” and “á”, what to do?
- Print html when custom field has value inside while loop
- Update WordPress Custom Field with AJAX on cached page
- How do I add a php statement to a jQuery string
- Geocoding an Exploded Custom Field Array
- submit the form to same page
- How can update custom meta for all posts
- Adding Field to Profile “Name”
- Unique key for each row in a repeater field
- the_author_meta not working
- How to Explode a Textarea Field and Echo each line separately, wrapped with HTML
- get_post_custom single array
- Submitting form via admin-post.php and handling errors
- How can I default to all WordPress roles when parameter is not included in shortcode?
- Implement a multi-value input field where the number of entries is not limited
- Select dropdown not showing selected value php
- 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
- Passing POST data from one WP post to another
- Make custom field meta not display if there is not data in it
- Getting the dropdown menu to redirect to different pages?
- WooCommerce: update custom fields after checkout validation failure
- Processing a subscription form with POST method?
- If Meta Checkbox is checked, do something?
- How to group 2 radio buttons in a widget?
- Ajax form submit within a Post Metabox
- Show custom field if it exists, and show different elements if it doesn’t
- how to increase custom post value by one most efficiently?
- How to create and work with custom data / tables (i.e., for arbitrary data)?
- Upload Image in a WordPress page using PHP
- Custom field value not saving when it contains a URL?
- how to save selection meta data in user profile on frontend
- Using Multiple Submit buttons to trigger customised php functions
- Sum custom field values of particular taxonomy
- Get Admin Email Address From External PHP page
- Adding Custom Forms
- How do I let users upload files to a chosen location?
- woocommerce registration form with klaviyo(don’t work with current user)
- Importing hard coded custom field into acf field
- tracking number field in Woocommerce order [closed]
- How to make drop down post title
- How can I create a list of page titles from custom meta values?
- How to create a form and display its content as table in admin panel?
- Custom Form Processing Issue
- My form action url is being prepended with a directory that does not exists
- Passing the custom field values in the wp_get_current_user array function
- Sort posts by custom fields value using dropdown menu
- Multiple options not staying selected after saving
- Filter Select results based on selection
- Reordering Buddy Press profile navigation [closed]
- WordPress – Display array data of a child
- How can I reuse the code to capture a param in a URL and place in a value in a hidden form?
- WooCommerce/WordPress: how hide entire table form after submit (Admin Dashboard)?
- How to store data from multiple forms using ajax and php
- How to use $query->set with post__in?
- wordpress allow user to edit user profile with custom fields
- Why do WP_Query results change after updating unrelated Advanced Custom Fields (ACF)?
- Ajax loaded form replaces form action with Ajax url
- prevent default not stopping page refresh. Passing form information to and from php with ajax in a wordpress site
- Excluding Specific Fields from Profile Builder Registration Form
- How to limit the number of forgot password reset attempts in WordPress?
- Custom search results page not working with empty search
- Modify HTML structure of fields in woocommerce checkout form
- Store multiple custom field as post meta per post(css, js, html, 2 link) [closed]
- How to VAR_DUMP a $variable during checkout process (Is my product meta callable?)
- Need Help Fixing My Iframes [closed]
- How to retrieve current wordpress profile page URL?