php - Check that an input date is set without a submit button? -


is possible check input type date set without submit button. i.e if done through mobile browser there set button when first click on date input field there way check "set" button clicked , desktop view calendar when user clicks on date same button, there way check has been clicked without submit button?

image example:

enter image description here

normally check using submit button, this:

if (isset($_get['date'])){     $date = $_post['datevalue'];     if (empty($date)) {         //if date not set...     }     else{         //if date set...     } } 

thanks guys, been struggling while now.

why not let html handle it?

<input type ="date" required> 

forms wont submit unless input type required attribute not empty


Comments

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -