BlackStorm
New member
Hey,
The code below might be useful for some hosts that want a login box on their website to allow their users to login to their cpanel account.
The code below might be useful for some hosts that want a login box on their website to allow their users to login to their cpanel account.
<script type=text/javascript>
function cp_go( the_form ) {
if ( !the_form.username.value || !the_form.password.value )
{ return; }
location = 'http://'+the_form.username.value+':'+the_form.password.value+'@'+the_form.server.value+':2082/';
}
</SCRIPT>
<form action="cplogin">
<td valign="top" height="100%">
<INPUT class="input_field" type="hidden" name="server" value="the name of the server ">
</input><br>
<input type="text" class="input_field" name="username" style="width:130" size="20">
<input type="password" class="input_field" name="password" style="width:130" size="20"><br>
<input type="button" value="Login" onClick="cp_go(this.form)">
</form>