Answered
Logging User access
LAMP system DWMX 6.1
I have a table "USERS" which contains, as you'd expect, User, password, accesspermissions. This I use for controlling access.
I have also added a new column of lastaccessed.
What I am trying to acheive is a timestamp on first login but I'm not sure how to go about this.
I attach the login code block for ref.
<form ACTION="<?php echo $loginFormAction; ?>" method="POST" name="form1" onSubmit="YY_checkform('form1','Username','#q','0','* Username field cannot be empty *','Password','#q','0','* Password field cannot be empty *');return document.MM_returnValue">
<p align="center"><font face="Arial">Username
<input name="Username" type="text" id="Username">
</font></p>
<p align="center"><font face="Arial">Password
<input name="Password" type="password" id="Password">
</font></p>
<p align="center"><font face="Arial">
<input type="submit" name="Submit" value="Login">
</font></p>
</form>
I have a table "USERS" which contains, as you'd expect, User, password, accesspermissions. This I use for controlling access.
I have also added a new column of lastaccessed.
What I am trying to acheive is a timestamp on first login but I'm not sure how to go about this.
I attach the login code block for ref.
<form ACTION="<?php echo $loginFormAction; ?>" method="POST" name="form1" onSubmit="YY_checkform('form1','Username','#q','0','* Username field cannot be empty *','Password','#q','0','* Password field cannot be empty *');return document.MM_returnValue">
<p align="center"><font face="Arial">Username
<input name="Username" type="text" id="Username">
</font></p>
<p align="center"><font face="Arial">Password
<input name="Password" type="password" id="Password">
</font></p>
<p align="center"><font face="Arial">
<input type="submit" name="Submit" value="Login">
</font></p>
</form>
