Skip to main content
Topic: Date input problem in publicated application (Read 1297 times) previous topic - next topic

Date input problem in publicated application

In PHPRad 2.7.3 if the input field type is date, in generated code is "type=datetime". If i public the app, then will be error on the add page and submit. I can modify the code manually.

Update: The code work in perfect under Win + XAMPP. If I upload to My CentOS8 server, then I'm gettin errors.

For example:
Code: [Select]
<div class="form-group col-md-4">
    <label class="control-label" for="birthday">Birthday <span class="text-danger">*</span></label>
    <div id="ctrl-birthday-holder" class="input-group">
        <input id="ctrl-birthday" class="form-control datepicker  datepicker"  required="" value="<?php  echo $this->set_field_value('birthday',""); ?>" type="datetime" name="birthday" placeholder="birthday" data-enable-time="false" data-min-date="1900-01-01" data-max-date="" data-date-format="Y-m-d" data-alt-format="F j, Y" data-inline="false" data-no-calendar="false" data-mode="single" />
        <div class="input-group-append">
            <span class="input-group-text"><i class="fa fa-calendar"></i></span>
        </div>
    </div>
</div>