so here is code:
echo "<label>";
echo " <span>Data nuo: </span>";
echo " <input id='data' name='data' type='date' pattern='(?:19|20)[0-9]{2}-(?:(?:0[1-9]|1[0-2])-(?:0[1-9]|1[0-9]|2[0-9])|(?:(?!02)(?:0[1-9]|1[0-2])-(?:30))|(?:(?:0[13578]|1[02])-31))' title='Data ivesti tokiu formatu: 2016-01-01' >";
echo " </label>";
ad then
$field3 = isset( $_POST['data']) ? $_POST['data'] : "";
echo $field3;
so when date is set, I get my chosed date printed, but if date is not set, i get nothing printed, question is, what is default value of date if date is not set? NULL? How to print "Date is not set" if date is not set?
if ($field3 == ????) {
echo "date is not set";