The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

users' login from my site

Discussion in 'General Discussion' started by eliasche, Mar 6, 2005.

  1. eliasche

    eliasche Member

    Joined:
    Feb 5, 2005
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    hello,

    just a simple question,

    how can our clients log into their account, from our site?

    any HTML for that login box?

    thanks
     
  2. dgbaker

    dgbaker Well-Known Member
    PartnerNOC

    Joined:
    Sep 20, 2002
    Messages:
    2,578
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Toronto, Ontario Canada
    cPanel Access Level:
    DataCenter Provider
    Do a search on the forum there are several threads that talk about login forms.
     
  3. dalem

    dalem Well-Known Member
    PartnerNOC

    Joined:
    Oct 24, 2003
    Messages:
    2,577
    Likes Received:
    40
    Trophy Points:
    48
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
    there are many posts on the forums seach is your friend here is a simpe java script to log in via domain Name edit to suit



    <script type="text/javascript">


    function set_target() {

    var username, password, servername, login_option, protacal;
    username = document.forms.login_form.user.value;


    login_option = document.forms.login_form.login_option.value;
    login_option == 'cpanel' ? protacal = 'http://' : protacal = 'http://' ;
    login_option == 'webmail' ? protacal = 'http://' : protacal = 'http://' ;
    login_option == 'whm' ? protacal = 'http://' : protacal = 'http://' ;
    document.forms.login_form.action = protacal + username + '/' + login_option ;

    }

    </script>
    <form name="login_form" method="post" onsubmit="set_target();">
    <table width="154" height="59" border="0" cellpadding="0" cellspacing="0">
    <tbody>
    <tr>
    <td height="38">
    <p align="left"><font color="#000000" size="1"><b><font size="2" color="#FFFFFF">DOMAIN
    NAME </font></b></font>
    <input name="user" class="input" type="text" value="" style="width: 125px; height: 18px;">
    <br>
    <font color="#000000"><b><font size="2">
    <select name="login_option" class="input" style="width: 125px; height: 18px;">
    <option value="cpanel">Cpanel Secure</option>
    <option value="webmail">Webmail</option>
    <option value="whm">WHM</option>
    </select>
    <font color="#FFFFFF">LOGIN TYPE</font></font> </b></font> </p>
    </td>
    </tr>
    <tr>
    <td height="21">
    <input type="image" src="login.gif" width="47" height="16">
    </td>
    </tr>
    </tbody>
    </table>
     
Loading...

Share This Page