Custom Login

Discussion in 'General' started by purechaos, Jun 23, 2009.

  1. purechaos

    purechaos New Member

    I'm trying to add a custom login for ISP on my website. I used the following code which I got from ISP's login.php file:

    Code:
    <form method="POST" action="login/login.php" name="loginForm"> 
    <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0"> 
      <tr> 
        <td align="center" valign="middle"><table width="400" border="0" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC"> 
          <tr> 
            <td><img src="design/default/images/login_logo.png" width="398" height="78"></td> 
          </tr> 
          <tr> 
            <td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="5"> 
              <tr align="center"> 
                <td height="66" colspan="2" class="normal"> 
                            Here you can log in:                        </td> 
                </tr> 
              <tr> 
                <td width="35%" align="left" class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Username:</td> 
                <td width="65%"><input type="text" name="username" class="text"></td> 
              </tr> 
              <tr> 
                <td align="left" class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Password:</td> 
                <td><input type="password" name="passwort" class="text"></td> 
              </tr> 
              <tr> 
                <td>&nbsp;</td> 
                <td><input type="submit" name="B1" value="  Login  " class="button"></td> 
              </tr> 
              <tr> 
                <td>&nbsp;</td> 
                <td>&nbsp;</td> 
              </tr> 
            </table></td> 
          </tr> 
        </table> 
          <p>&nbsp;</p></td> 
      </tr> 
    </table> 
    </form> 
    the only thing I changed was:
    Code:
    <form method="POST" action="login/login.php" name="loginForm">
    to
    Code:
    <form method="POST" action="http://cp.g3-services.com:81/login/login.php" name="loginForm">
    The problem is after I click "submit" it takes me to the ISP login page, but it dosent log me in. Any suggestions?

    Thanks
    PureChaos
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Most browsers are blocking post requests to other domains for security reasons, so your problem is not related to ispconfig or the form you created. But you can try to change the mothod from POST to GET.
     
  3. purechaos

    purechaos New Member

    okay I tried that, it still does the same thing...

    so scratch that idea from my website :(
     
  4. id10t

    id10t Member

    Full domains or different hosts in the same domain?

    I've never seen an issue with firefox submitting something viewed eihter with the file:// protocol or http://localhost to a different domain...

     
  5. purechaos

    purechaos New Member

    I've tried with IE, Firefox & Google chrome..

    The domains are hosted on the same server though
     

Share This Page