Login form on another page

Cutia

Verified User
Joined
Jul 31, 2004
Messages
41
Hi, I'm interested in inserting a login form on our home page so that clients can log directly into their DirectAdmin account from there, or do I have to settle for a link to the login page? I've seen some hosting providers give a login form on the home page of their site and that's the kind of thing I'd like to do.

I guess an example would be www.iinet.com.au where they have two login forms on the front page, one to webmail and one to their control panel (sorry, not the best example).

Anyone with some advice as to how to go about it?
 
<form action="http://yourdomain.com:2222/CMD_LOGIN" method="post" name="login">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="2" class="tablestyle"><div align="center"><font color="#003366" size="2" face="Verdana, Arial, Helvetica, sans-serif"><b>HOSTING
LOGIN</b></font></div></td>
</tr>
<tr>
<td width="50%" height="50" valign="middle"><div align="right"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><b>Username:</b>
</font></div></td>

<td width="50%" valign="middle"> <input name="username" type="text" class="tablestyle" value="username" maxlength="26"></td>
</tr>
<tr>
<td height="48" valign="middle"><div align="right"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><b>Password:</b>
</font></div></td>
<td><input name="password" type="password" class="tablestyle" value="password"></td>
</tr>
<tr>
<td colspan="2" class="tablestyle"><div align="center">
<p><br>
<input name="FAIL_URL" type="hidden" value="http://www.yourdomain.com/login.shtml">
<input name="LOGOUT_URL" type="hidden" value="http://www.yourdomain.com/login.shtml">
<br>
<input name="Submit" type="submit" class="buttonstyle" value="Login">
<br>

</p>
</div></td>
</tr>
</table>
<div align="center"></div>
</form>

Hope this helps!

Edit: It seems to have lost the formating when I pasted it but you should get the general idea,

Just change 'yourdomain.com' for your domain!

Rob
 
Thats perfect thanks Rob. I'll adapt it to fit the site's style, but essentially the data I need is there.

Thanks again for your swift response.
 
Back
Top