close ad
Help us test the new Databridge BETA with MySQLi support
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

input type TIME field not displaying

Thread began 2/08/2018 7:28 am by eric284736 | Last modified 2/08/2018 2:44 pm by Ray Borduin | 55 views | 4 replies |

eric284736

input type TIME field not displaying

Hi Ray,

I have an update page that has a couple of TIME fields and one works while the other does not. The one that works displays the time correctly as 5:30 PM and the other one will not display, it just shows the time pattern.

Correctly displayed:
<div class="lineGroup"> <label for="arrvtime" class="sublabel" > Arrv Time:</label>
<input id="arrvtime" name="arrvtime" type="time" value="<?php echo $row_WADARegistrationTable['arrvtime']; ?>" class="formTextfield_Medium" tabindex="42" title="Please enter a value.">

Not displaying
<div class="lineGroup"> <label for="departtime" class="sublabel" > Depart Time:</label>
<input id="departtime" name="departtime" type="time" value=" <?php echo $row_WADARegistrationTable['departtime']; ?>" class="formTextfield_Medium" tabindex="49" title="Please enter a value.">

Both are TIME datatypes. Not sure what I am missing.

thx
Eric

Sign in to reply to this post

Ray BorduinWebAssist

Is the value correct in the database? Is it a display problem or a save problem? I can't spot a problem on the page.

Sign in to reply to this post

eric284736

Yes, the database entry is 18:07:00 which should display as 6:07 PM. I could not find anything wrong on the page either. It is really weird.

Sign in to reply to this post

Ray BorduinWebAssist

Change the input type from "time" to "text" and see what displays. I see you have a space in front of the value. See if that is causing issues.

Sign in to reply to this post

eric284736

Thanks Ray!! I removed the space and that did not seem to be the issue. Changes the type to text and then back to time and it worked.

Thanks!

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...