dantheuser Posted January 27, 2021 Share Posted January 27, 2021 Hello I first should say that I am a beginner. And actully friend was helping me with this but can't really contact him right now so I have to ask here. I have a php file where I have birthdate dropdown menu for month, day and a year and JS that just has all of the details about those 3 "variables" but the problem I am having is that this is inside submit form and whenever I or someone else submits this form and doesn't put any birthdate inside it doesn't show anything like "Please select your birthdate or something like that." and I honestly tried pretty much everything now but can' t get the answer on how to do that. Please help me. :( Quote Link to comment https://forums.phpfreaks.com/topic/312055-problem-with-php-taking-care-of-empty-variables/ Share on other sites More sharing options...
Barand Posted January 27, 2021 Share Posted January 27, 2021 Why not use Date of Birth <input type="date" required> (You will still need to validate the date after the form is submitted to your php script) Quote Link to comment https://forums.phpfreaks.com/topic/312055-problem-with-php-taking-care-of-empty-variables/#findComment-1584034 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.