Code: Select all
<body>
$(if chap-id)
<form name= "sendin" action="$(link-login-only)" method="post" >
<input type="hidden" name= "username" />
<input type="hidden" name= "password" />
<input type="hidden" name= "dst" value= "$(link-orig)" />
<input type="hidden" name= "popup" value="true" />
</form>
<script type="text/javascript" src="/md5.js"></script>
<script type="text/javascript" >
function doLogin()
{
document.sendin.username.value = document.login.username.value;
document.sendin.password.value = hexMD5('$(chap-id)' + document.login.password.value + '$(chap-challenge)');
document.sendin.submit();
return false;
}
</script>
$(endif)
<div id="header">
<div id="login">
<table border="0">
<form name= "login" action="$(link-login-only)" method="post" $(if chap-id) onSubmit= "return doLogin()" $(endif)>
<input type= "hidden" name= "dst" value= "$(link-orig)" />
<input type= "hidden" name= "popup" value= "true" />
<tr>
<td align="right">USER: </td> <td><input style= "width:80px"; "height:9px"; name="username" type="text" value="$(username)"/></td>
<td align="right">PASS: </td> <td><input style= "width:80px"; "height:9px"; name="password" type="password"/> </td>
<td align="right"> </td> <td><input style= "width:40px"; "height:9px"; type="submit" value="Login" /> </td>
</form>
$(if error)
<td align="right">Eror: </td> <td><input style= "width:200px"; "height:9px"; name="errcode" type="text" value="$(error)"/> </td>
$(endif)
</tr>
</table>
</div>
..................
..................
when i try to test the page, i see:
Code: Select all
$(if chap-id)
and
$(endif)
$(if error)
and
$(endif)
it's putting spaces in between lines that it should not put...
also: is there any code that can transform the area of
Code: Select all
<div id="login">
I mean the form inputs will be hidden and the user name will be shown instead up until he logs off...?
thanks,