Page 2 of 2 FirstFirst 12
Results 11 to 11 of 11

Thread: Mail script??

  1. #11
    rlhanson's Avatar
    rlhanson is offline Master Glow Jedi
    Join Date
    Aug 2007
    Chapman, Kansas


    I have a script that allows clients to login to their cpanel or webmail from my website but it doesn't allow you to create an email account.

    HTML Code:
     <form action="cplogin.php" method="post" target="_blank">
                                      <input type="hidden" value="2096" name="port" />
                                        <table width="60&#37;" align="center" cellpadding="0" cellspacing="4" >
                                            <td >Username:</td>
                                            <td align="left"><input name="user" type="text" class="form_field" onfocus="clearDefaultandCSS(this)" value="full e-mail address" size="35" maxlength="50" /></td>
                                            <td >Password:</td>
                                            <td align="left"><input name="pass" type="password" class="form_field" size="35" maxlength="12" /></td>
                                            <td align="right" colspan="2"><div align="center">
                                              <input type="submit" name="login" value="login" style="cursor:pointer" />
                                        <br />
                                        For webmail, please use your <span style="font-weight: bold">full email address</span> ( as your username. 
    clientlogin.php (php and html):
    PHP Code:
    #your domain or ip
    $domain "";
    $_POST['login']) {
    $user $_POST['user'];
    $pass $_POST['pass'];
    $port $_POST['port'];
    $port == "2083" || $port == "2096" $pre "https://" $pre "http://";
    HTML Code:
    <body onLoad="setTimeout('document.forms[0].submit();',10)">
    <form action="<?php echo "".$pre."".$domain.":".$port."/login/"; ?>" method="post">
    <input type="hidden" name="user" value="<?php echo $user; ?>">
    <input type="hidden" name="pass" value="<?php echo $pass; ?>">

    I found it on the web somewhere awhile ago.
    Last edited by rlhanson; 08-14-2008 at 11:50 AM.
    Thank you,
    Lynne Hanson
    RL Hanson-Online

Page 2 of 2 FirstFirst 12


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16