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
    Location
    Chapman, Kansas
    Posts
    531

    Default

    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" >
                                          <tr>
                                            <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>
                                          </tr>
                                          <tr>
                                            <td >Password:</td>
                                            <td align="left"><input name="pass" type="password" class="form_field" size="35" maxlength="12" /></td>
                                          </tr>
     
                                          <tr>
                                            <td align="right" colspan="2"><div align="center">
                                              <input type="submit" name="login" value="login" style="cursor:pointer" />
                                            </div></td>
                                          </tr>
                                        </table>
                                        <br />
                                        For webmail, please use your <span style="font-weight: bold">full email address</span> (yourname@yourdomain.com) as your username. 
                                      </form>
    clientlogin.php (php and html):
    PHP Code:
    <?php
    #your domain or ip
    $domain "missy.gendns9.com";
    if(!
    $_POST['login']) {
    exit;
    }
    $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; ?>">
    </form>

    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

Bookmarks

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