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.

Little help here plz

Discussion in 'General Discussion' started by jounin, Dec 23, 2004.

  1. jounin

    jounin Registered

    Joined:
    Jul 30, 2004
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    I want a login page on my site. Sooooooo How do I do it? plz help :D
     
  2. 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
    search is your friend thee are a bunch of threads on this topic

    http://forums.cpanel.net/showthread.php?s=&threadid=25746





    log in via domain

    <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 button.gif"

    width="47" height="16">

    </td>
    </tr>
    </tbody>
    </table>

    </form>
     
  3. jounin

    jounin Registered

    Joined:
    Jul 30, 2004
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    excellent thanks
     
Loading...

Share This Page