Members page

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
franknu
Forum Contributor
Posts: 146
Joined: Sun May 28, 2006 9:29 am

Members page

Post by franknu »

Ok, i am creating a member page. the user have to put in their password and user name. what is the best way to do this, I have notices in some manuals where the script is running on the same page as the login page..

any idea how i can do this here is my login page

Code: Select all

<form method="Post" action="member_page.php">
<table width="40%" border="0" cellpadding="0" cellspacing="0" bordercolor="#CCCCCC">
  <tr>
    <td height="242"><table width="100%" border="00" cellpadding="0" cellspacing="0" bordercolor="#CCCCCC">
        <tr>
          <td><img src="../images/logo_top.jpg" width="239" height="82"></td>
        </tr>
        <tr>
          <td bgcolor="#FFFFFF"><div align="center">
              <p><strong><font size="+1">Administration</font></strong></p>
              <p>&nbsp;</p>
            </div></td>
        </tr>
        <tr>
          <td><table width="60%" border="1" cellpadding="0" cellspacing="0" bordercolor="#CCCCCC" bgcolor="#CCCCCC">
              <tr> 
                <td width="25%"><font color="#000000"><strong>UserName</strong></font></td>
                <td width="75%"><font color="#000000"> 
                  <input type="User_Name" name="User_Name">
                  </font></td>
              </tr>
              <tr> 
                <td><font color="#000000"><strong>Password</strong></font></td>
                <td><font color="#000000"> 
                  <input type="Password" name="Password">
                  </font></td>
              </tr>
              <tr> 
                <td>&nbsp;</td>
                <td><table width="102%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td width="72%" height="53"> <div align="right">
                          <input type="submit" name="submit" value="Reset">
                        </div></td>
                      <td width="28%"><input type="submit" name="submit2" value="LogMeIn"></td>
                    </tr>
                  </table></td>
              </tr>
              <tr> 
                <td>&nbsp;</td>
                <td><strong><a href="login1.php">Forgot my Password</a></strong></td>
              </tr>
            </table></td>
        </tr>
      </table></td>
  </tr>
</table>
</form>


here is my members page

Code: Select all

<table width="75%" height="351" border="1" cellpadding="0" cellspacing="0">
  <tr>
    <td valign="top"> 
      <table width="100%" border="1" cellspacing="0" cellpadding="0">
        <tr> 
          <td width="34%" height="21">Home</td>
          
        </tr>
        <tr>
          <td height="21">
		 echo"welcome name of $BusinessName"; 
		  
		
		  </td>
         
        </tr>
      </table>

	
	<table width="100%" border="1" cellspacing="0" cellpadding="0">
        <tr> 
          <td width="21%" height="310"><table width="100%" border="1" cellspacing="0" cellpadding="0">
              <tr> 
                <td>Advertise your website</td>
              </tr>
              <tr> 
                <td>&nbsp;</td>
              </tr>
              <tr> 
                <td>Email Marketin</td>
              </tr>
              <tr> 
                <td>Add An email </td>
              </tr>
              <tr> 
                <td>Messeges</td>
              </tr>
            </table></td>
          <td width="50%" valign="top"> 
            <table width="100%" border="1" cellspacing="0" cellpadding="0">
              <tr>
                <td>Update my site</td>
                <td>Add Key words</td>
                <td>CCBILL</td>
              </tr>
            </table></td>
          <td width="29%" valign="top">&nbsp;</td>
        </tr>
      </table></td>
  </tr>
</table>
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

I'm not entirely sure what you're asking about.. best way to do what?
Post Reply