instead of boring button i decided to style a link button for my login page. Only thing is I'm not sure how to get it to work.
Here's the code before the link button:
<div id="centerDoc">
<div id="loginScreen">
<table width="400" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
<tr>
<form name="form1" method="post" action="">
<td>
<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
<tr>
<td colspan="3"><strong>User Login </strong></td>
</tr>
<tr>
<td width="78">Username</td>
<td width="6">:</td>
<td width="294"><input name="username" type="text" id="username"></td>
</tr>
<tr>
<td>Password</td>
<td>:</td>
<td><input name="password" type="password" id="password"></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td><input type="submit" name="login" value="Login"></td>
</tr>
<tr><td colspan="3"><?php require_once 'checkLogin.php'; ?></td></tr>
</table>
</td>
</form>
So the only difference is instead of:
<td><input type="submit" name="login" value="Login"></td>
I've added:
<td><a href="#" class="loginButton" name="login" value="login">Log in</a></td>
But as i suspected it doesn't do anything. How can i fix this? Thanks.
EDIT: I'd like to use a custom css button instead of the default button. My understanding was that this needs to be done with a link button. But I also need to get the post event so that checkLogin.php can do the necessary processing by doing the isset test if (isset($_POST['login'])){. Hope that makes sense.