Time update fails
I have DB installed on Dreamweaver CC 2015. I used Data assist pages to search, update records from database. I have a problem with time, It doesn't update time and gets an error that "please enter a value"
As well it fails to populate date in the date fields every time I load the update page from the results page.
The following is the code:
</div>
<div class="lineGroup"> <label for="timeofadmission" class="sublabel" > Time of Admission:</label>
<input name="timeofadmission" type="text" class="formTextfield_Medium" form="Update_Basic_Default" max="24:60:00" min="01:00:00" tabindex="10" title="<?php echo $row_WADAmaintble['timeofadmission']; ?>" value="<?php echo((isset($_GET["invalid"])?ValidatedField("maintbleupdate","timeofadmission"):"".(($row_WADAmaintble["timeofadmission"])?date("g:i A",strtotime($row_WADAmaintble["timeofadmission"])):"")."")); ?>">
<?php
if (ValidatedField('maintbleupdate','maintbleupdate')) {
if ((strpos((",".ValidatedField("maintbleupdate","maintbleupdate").","), "," . "5" . ",") !== false || "5" == "")) {
if (!(false)) {
?><span class="serverInvalidState" id="timeofadmission_ServerError">Please enter a value.</span><?php //WAFV_Conditional maintble_update.php maintbleupdate(5:)
}
}
}?>
</div>