Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    151
    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,574
    Likes Received:
    3
    Trophy Points:
    343
    Location:
    Toronto, Ontario Canada
    cPanel Access Level:
    DataCenter Provider
    Do a search on the forum there are several threads that talk about login forms.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. dalem

    dalem Well-Known Member
    PartnerNOC

    Joined:
    Oct 24, 2003
    Messages:
    2,742
    Likes Received:
    77
    Trophy Points:
    353
    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>
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice