PLEASE HELP!!!!!login problem on site

Discussion in 'PHP' started by ljinvests, May 20, 2009.

Thread Status:
Not open for further replies.
  1. #1
    can someone look at my code please and maybe tell me why i log in it keeps taking me to my log in page it should take me to the lobby.php
    <?
    require('includes/gen_inc.php');
    require('includes/inc_index.php');
    ?>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <title>FREE HOLDEM POKER</title>
    <meta name="KEYWORDS" content="%%metakeywords%%">
    <meta name="DESCRIPTION" content="%%metadescription%%">
    <meta name="ROBOTS" content="INDEX,FOLLOW">
    <meta name="distribution" content="Global">
    <meta name="rating" content="General">
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <link rel="stylesheet" href="css/site.css">

    <link rel="stylesheet" href="css/poker.css" type="text/css">
    <script language="JavaScript" type="text/JavaScript" src="js/lobby.php"></script>

    </head>
    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
    <td align="middle" valign="top"><table width="920" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#ffffff">
    <tr>
    <td align="middle" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td width="10" valign="top" background="images/temp_left_bg_im.jpg"></td>
    <td width="5" valign="top"></td>
    <td align="middle" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td align="middle" valign="top">

    <?PHP
    require("header.php");
    ?>

    </td>
    </tr>
    <tr>
    <td align="middle" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td height="10" align="middle" valign="top"></td>
    </tr>
    <tr>
    <td align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td width="160" align="left" valign="top">

    <!-- table of php page -->

    <table width="100%" border="0" cellspacing="0" cellpadding="1" bgcolor="#000000" style=" margin-bottom:10px">
    <tr>
    <td>
    <? require('includes/scores.php'); ?>
    </td>
    </tr>
    <tr>
    <td>
    <? include('footer.php'); ?>
    </td>
    </tr>
    </table>

    <!-- end table of php page -->
    <?php
    require('left_widget.php');
    ?>





    </td>
    <td width="10" align="left" valign="top"></td>
    <td align="left" valign="top" bgcolor="#ffffff">


    <table cellspacing="0" cellpadding="3" width="100%" border=0 bgcolor="#ffffff" style="margin:0 0 5px 0; padding:0">

    <tr>
    <td class="fieldsetheadcontent2">

    <table width="100%" border="0" cellspacing="0" cellpadding="3">
    <tr>
    <td bgcolor="#000000"><b><font size="3" color="#ffffff"><i><? echo LOGIN; ?></i> </font></b></td>
    </tr>
    </table>
    <br>
    <? if($msg != ''){ ?>
    <table width="300" border="0" cellspacing="0" cellpadding="5" align="center">
    <tr>
    <td colspan="2" align="center" class="smllfont" bgcolor="#660000"> <b>
    <? echo $msg; ?>
    </b></td>
    </tr>
    </table>
    <? } ?>
    <table border="0" cellspacing="0" cellpadding="0" width="300" align="center">
    <tr>
    <td><fieldset class="yellowborder"> <legend>&nbsp;
    <? echo BOX_LOGIN; ?>
    &nbsp;</legend>
    <form action="login.php" method="post" name="login">
    <table width="300" border="0" cellspacing="0" cellpadding="5" align="center">
    <tr>
    <td width="200" align="right" class="fieldsetheadcontent">
    <p style="color:#000000">
    <? echo LOGIN_USER; ?>
    <input type="text" size="12" maxlength="10" name="usr" class="fieldsetheadinputs" />
    </p>
    <p style="color:#000000">
    <input type="hidden" name="action" value="process">
    <? echo LOGIN_PWD; ?>
    <input type="password" size="12" maxlength="10" name="pwd" class="fieldsetheadinputs" />
    </p>
    </td>
    <td align="center" width="80" valign="bottom">
    <input type="submit" name="Login" value="<? echo BUTTON_LOGIN; ?>" class="betbuttons">
    <br>
    &nbsp; </td>
    </tr>
    </table>
    </form>
    </fieldset></td>
    </tr>
    </table>
    <table width="300" border="0" cellspacing="0" cellpadding="5" align="center">
    <tr>
    <td colspan="2" align="right" class="fieldsetheadlink"><a href="create.php" target="_self" class="fieldsetheadlink"><i>
    <? echo LOGIN_NEW_PLAYER; ?>
    </i></a></td>
    </tr>
    </table>
    </td>
    </tr></table>





    </td>
    <td width="10" align="left" valign="top"></td>
    <td width="145" align="left" valign="top">



    <?PHP
    require("right_widget.php");
    ?>



    </td>
    </tr>
    </table></td>
    </tr>
    <tr>
    <td height="10" align="middle" valign="top">
    <? include('footer1.php'); ?>

    </td>
    </tr>
    </table></td>
    </tr>
    <tr>
    <td align="middle" valign="top">

    <?PHP
    require("footer_new.php");
    ?>


    </td>
    </tr>
    </table></td>
    <td width="5" valign="top"></td>
    <td width="10" valign="top" background="images/temp_right_bg_im.jpg"></td>
    </tr>
    </table></td>
    </tr>
    </table></td>
    </tr>
    </table>
    </body>
    </html>

    please help
     
    ljinvests, May 20, 2009 IP
  2. NatalicWolf

    NatalicWolf Peon

    Messages:
    262
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #2
    We would need more files than just this...I can help you if you message me, I would need FTP though.
     
    NatalicWolf, May 20, 2009 IP
  3. ezprint2008

    ezprint2008 Well-Known Member

    Messages:
    611
    Likes Received:
    15
    Best Answers:
    2
    Trophy Points:
    140
    Digital Goods:
    1
    #3
    whats this stuff = <? echo LOGIN_USER; ?>
    is this supposed to be a variable? echo $_POST['LOGIN_USER']; ??????

    your doesn't make a heck of a lot of sense. and the problem is going to be in the include files where its being processed. But dont post that if it has your SQL connect files passwords etc.
     
    ezprint2008, May 20, 2009 IP
  4. ljinvests

    ljinvests Peon

    Messages:
    68
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    can you fix it for a small fee
     
    ljinvests, May 20, 2009 IP
  5. SHOwnsYou

    SHOwnsYou Peon

    Messages:
    209
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #5
    The action on your login page takes you back to login.php to process. If lobby.php is your process page, in the form, change action="login.php" to action="lobby.php"
     
    SHOwnsYou, May 21, 2009 IP
Thread Status:
Not open for further replies.