Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

General Discussion

Web Based Login Capture system

Hi All, I am actually on a learning stage at the moment and have a very-very basic knowledge on HTML and SQL however would like to know what all is required to have a Web Based Login capture system. What i mean by that is, In my previous organization we had a website where we used to enter our Employee ID and hit submit so it would capture our time that we logged in and display the Name of the person and the time (Hrs:Min:Sec) and had a "Clear" button so that we can clear the field for the next person to login and at the end of the day we used to enter the Emp ID again and it used to give us the log out button displaying the time (Hrs:Min:Sec) so we used to press the logout button and then clear to clear the field (again for the next person to do the same). And at the end of the month our reporting Manager used to pullup the data from a separate portal. So my question here is what all is required to create such a login capture portal with being able to maintain the captured data and retreive it as and when needed. Help would be highly appreciated. Thanks

3 Answers

Matt Campbell
Matt Campbell
9,767 Points

Could tell ya how to do it in wordpress.

Hey Matthew, thanks for replying, as i said i do not have much knowledge about Web Designing or Web Development I was actually thinking of a website created using HTML, CSS and Javascript with a Database to handle the Data but you took me to a complete new way and would be glad if you can tell me. Also Is Wordpress the only way or can it be done in other ways as well.

Matt Campbell
Matt Campbell
9,767 Points

It can be done with WordPress but, WordPress handles all the leg work for creating databases, keeping them secure, saving and moving data...it's a content management system.

The way I'd do it, is attach a hidden input with the value set to current time. Then when the submit button is saved, this is saved to the database and the value echo'd to the front end for the user to see. Same on logout button although I'd probably use something a little more advanced to say, get time when clicked and then save that to the database. again, once done, it's just a case of echo'ing out the value.