Search
Left Quote    Maybe this world is another planet's Hell.
- Aldous Huxley    
Right Quote
 
[login] | [Register]
Forum Index » PHP and mySQL » Viewing Topic and Replies
Post Reply


        Viewing Topic: Login menu
  This user is offline  retarded
  Subject: "Login menu" Posted: @ 5:08 pm on Jun 30 2007   
Member #: 357
Rank: User - (18)
Since: 06/26/07
Posts: 22

Ok so i asked a question before the forum weant down.. here it is again..

Im trying to make a login box on my index page, when you come to the site, it checks if your loged in, if not it says "
Welcoem Guest, Log in below or register a free account HERE.

and if it is loged in i want it to say,
Welcome "username& quot;
Last time loged in :MMDDYYYY
Posts:
Account Type:|"Fre e" (click to change)
|Profile|Invite s|Contact Admin|
=============== =============== ============= im a total newb at this.. ive only done some of the work on it.. cant figure out how to structure the rest of the script
=============== =============== =============== ==========
and can i have a banner for this site (200 X 550) so that i can put it on my site

Here is code for what i have at the moment.

Code:
<?
ob_start();
require_once($_ SERVER['DOCUMEN T_ROOT'].'/db_c onnect.php'); ?>
<!DOCTYPE HTML PUBLIC "-//W3C//D TD HTML 4.01 Transitional//E N">
<html>
<head>
<title>Ga merElites.com&l t;/title>
<meta http-equiv=&quo t;content-type& quot; content="t ext/html; charset=UTF-8&q uot;>

<link href="styl e.css" rel="style sheet" type="text /css">< br /> <style type="text /css">< br /> <!--
#apDiv1 {
position:absol ute;
left:305px;
top:29px;
width:33px;
height:36px; z-index:1;
}
#apDiv2 {
position:absol ute;
left:267px;
top:41px;
width:33px;
height:9px;
z-index:1;
}
.style4 {font-size: 16px; font-weight: bold; color: #E52F00;}
-->
</style>< br /> </head> <body>
<table cellpadding=&qu ot;0" cellspacing=&qu ot;0" border="0& quot; align="lef t">
<tr>
<td valign="to p" width="766 " height="81 0" class="con tent">< br /> <table cellpadding=&qu ot;0" cellspacing=&qu ot;0" border="0& quot;>
<tr> <td valign="to p" width="766 " height="10 7">
<table cellpadding=&qu ot;0" cellspacing=&qu ot;0" border="0& quot;>
<tr> ;
<td valign="to p" width="262 " height="10 7">< img src="image s/logo.gif" ; alt="" ; border="0& quot;></t d>
<td valign="to p" width="504 " height="10 7">< div style="mar gin:6 0 0 1px "><i mg src="image s/w1.gif" style="mar gin-left:13px; margin-bottom:5 px " alt="" ; border="0& quot;><br ><a href="#&qu ot;><img src="image s/k1.gif" alt="" ; border="0& quot;></a ><a href="#&qu ot;><img src="image s/k2.gif" alt="" ; border="0& quot;></a ><a href="#&qu ot;><img src="image s/k3.gif" alt="" ; border="0& quot;></a ><a href="#&qu ot;><img src="image s/k4.gif" alt="" ; border="0& quot;></a ><a href="#&qu ot;><img src="image s/k5.gif" alt="" ; border="0& quot;></a ><a href="#&qu ot;><img src="image s/k6.gif" alt="" ; border="0& quot;></a ><a href="#&qu ot;><img src="image s/k7.gif" alt="" ; border="0& quot;></a ><a href="#&qu ot;><img src="image s/k8.gif" alt="" ; border="0& quot;></a ><a href="#&qu ot;><img src="image s/k9.gif" alt="" ; border="0& quot;></a ><a href="#&qu ot;><img src="image s/k10.gif" alt="" ; border="0& quot;></a ><a href="#&qu ot;><img src="image s/k11.gif" alt="" ; border="0& quot;></a ><a href="#&qu ot;><img src="image s/k12.gif" alt="" ; border="0& quot;></a ><br>& lt;a href="inde x.html"> ;<img src="image s/m1-1.gif" ; alt="" ; border="0& quot;></a ><a href="inde x-1.html"& gt;<img src="image s/m2.gif" alt="" ; border="0& quot;></a ><a href="#&qu ot;><img src="image s/m3.gif" alt="" ; border="0& quot;></a ><a href="#&qu ot;><img src="image s/m4.gif" alt="" ; border="0& quot;></a ><a href="#&qu ot;><img src="image s/m5.gif" alt="" ; border="0& quot;></a ><a href="#&qu ot;><img src="image s/m6.gif" alt="" ; border="0& quot;></a ><a href="#&qu ot;><img src="image s/m7.gif" alt="" ; border="0& quot;></a ><a href="#&qu ot;><img src="image s/m8.gif" alt="" ; border="0& quot;></a ></div> ;</td>
</tr&g t;
</table> </td>
</tr>< br /> <tr> <td valign="to p" width="766 " height="63 3">
<table cellpadding=&qu ot;0" cellspacing=&qu ot;0" border="0& quot;>
<tr> ;
<td valign="to p" width="262 " height="68 3">
<table height="68 9" border="0& quot; cellpadding=&qu ot;0" cellspacing=&qu ot;0">< br /> <tr>
<t d valign="to p" width="262 " height="21 " style="bac kground-image:u rl(images/1_bg1 .gif) "><d iv style="mar gin:7 0 0 11px "><i mg src="image s/1_w1.gif" ; alt="" ; border="0& quot;></d iv></td&g t;
</t r>
<tr >
<t d width="262 " height="33 " valign="to p" bordercolor=&qu ot;#EFEBEF" ; bgcolor="# 595959"> ;
<?

//Check if logged in
if($_ SESSION['logged _in'] == 1) {
echo("Welc ome, would you like to go to the member Area.s"); // Make sure you include link to member area.
} else {
//html here
?>
<form name="logi n" method="po st" action="&l t;?php echo $_SERVER['PHP_S ELF']?>" ;>
<table align="lef t">
<tr>
<td align="cen ter">Us ername:<inpu t type="text " id="userna me" name="user name">& lt;/td></ tr>
<tr>
<td align="cen ter">Pa ssword:<inpu t type="pass word" id="passwo rd" name="pass word">& lt;/td></ tr>
<tr>
<td align="cen ter">&l t;input type="subm it" value="Sub mit" name="subm it" id="submit "></ td></tr&g t;
<tr>
<td>Remem ber? <input type="chec kbox" name="stay _in[]" checked="y es">< ;/td></tr >
</table>
</form> </td>
</tr> ;
<tr >
<td height="12 " valign="to p" bordercolor=&qu ot;#EFEBEF" ; bgcolor="# 595959"> ;<p>& nbsp;</p>
<p>&n bsp;</p>< br /> <p>&n bsp;</p>& lt;/td>
</tr>
<tr >
<t d valign="to p" width="262 " height="21 " style="bac kground-image:u rl(images/1_bg1 .gif) "><d iv style="mar gin:7 0 0 11px "><i mg src="image s/1_w4.gif" ; alt="" ; border="0& quot;></d iv></td&g t;
</t r>
<tr >
<t d valign="to p" width="262 " height="13 4" bgcolor="# 2B2B2B"> ;
< table cellpadding=&qu ot;0" cellspacing=&qu ot;0" border="0& quot;>
< ;tr>
&l t;td valign="to p" width="140 " height="13 4">
& lt;div style="mar gin:17 0 0 11px "><u l>
<l i><a href="#&qu ot;>Action </a></ li>
<l i><a href="#&qu ot;>1st-Pers on Shooters</a& gt;</li>< br /> <l i><a href="#&qu ot;>Adventur e</a>< /li>
<l i><a href="#&qu ot;>Mass Multiplayer< /a></li&g t;
<l i><a href="#&qu ot;>Role-Pla ying</a>& lt;/li>
<l i><a href="#&qu ot;>Real-Tim e Strategy</a& gt;</li>
</u l></div&g t; </td>
&l t;td valign="to p" width="122 " height="13 4">< div style="mar gin:17 0 0 0px "><u l>
<l i><a href="#&qu ot;>Racing </a></ li>
<l i><a href="#&qu ot;>Role-Pla ying</a>& lt;/li>
<l i><a href="#&qu ot;>Tycoon&l t;/a></li >
<l i><a href="#&qu ot;>For Kids</a>& lt;/li>
<l i><a href="#&qu ot;>Top Rated Games</a> </li>
<l i><a href="#&qu ot;>Most Popular</a&g t;</li>
</u l></div&g t;</td> < ;/tr>
< /table> </td> ;
</t r>
<tr >
<t d valign="to p" width="262 " height="21 " style="bac kground-image:u rl(images/1_bg1 .gif) "><d iv style="mar gin:6 0 0 11px "><i mg src="image s/1_w5.gif" ; alt="" ; border="0& quot;><im g src="image s/1_w6.gif" ; alt="" ; border="0& quot; style="mar gin-left:52px "></ div></td& gt;
</t r>
<tr >
<t d valign="to p" width="262 " height="83 " bgcolor="# 2B2B2B" class="blo ck1">&l t;div style="mar gin:8 10 0 14px "><i mg src="image s/1_p1.jpg" ; align="lef t" style="mar gin-right:13px; " alt="" ; border="0& quot;><br style="lin e-height:5px ">
<a href="#&qu ot;>World in Conflict</a& gt;<br> <br style="lin e-height:5px ">
</ div></td& gt;
</t r>
<tr >
<t d valign="to p" width="262 " height="1& quot;></t d>
</t r>
<tr >
<t d valign="to p" width="262 " height="84 " bgcolor="# 2B2B2B" class="blo ck1">&l t;div style="mar gin:8 10 0 14px "><i mg src="image s/1_p2.jpg" ; align="lef t" style="mar gin-right:13px; " alt="" ; border="0& quot;><br style="lin e-height:5px ">
<a href="#&qu ot;>Wolfpack Studios</a&g t;<br>
<br style="lin e-height:5px ">
</ div></td& gt;
</t r>
<tr >
<t d valign="to p" width="262 " height="1& quot;></t d>
</t r>
<tr >
<t d valign="to p" width="262 " height="85 " bgcolor="# 2B2B2B" class="blo ck1">&l t;div style="mar gin:8 10 0 14px "><i mg src="image s/1_p3.jpg" ; align="lef t" style="mar gin-right:13px; " alt="" ; border="0& quot;><br style="lin e-height:5px ">
<a href="#&qu ot;>Crysis&l t;/a><br& gt;
<br style="lin e-height:5px ">
</ div></td& gt;
</t r>
<tr >
<t d valign="to p" width="262 " height="1& quot;></t d>
</t r>
<tr >
<t d valign="to p" width="262 " height="28 " bgcolor="# 2B2B2B" class="blo ck2">&l t;div style="mar gin:8 0 0 14px "><a href="#&qu ot;>read more news</a>& lt;/div>< /td>
</t r>
<tr >
<t d valign="to p" width="262 " height="21 " style="bac kground-image:u rl(images/1_bg4 .gif) "><d iv style="mar gin:7 0 0 11px "><i mg src="image s/1_w7.gif" ; alt="" ; border="0& quot;></d iv></td&g t;
</t r>
<tr >
<t d valign="to p" width="262 " height="70 " bgcolor="# 4A4A4A"> ;<form action="&q uot; style="mar gin:0; padding:0 "><d iv style="mar gin:16 0 0 10px "></ div>
</ form>
<d iv style="mar gin:5 0 0 14px "><a href="#&qu ot;><img src="image s/1_w8.gif" ; alt="" ; border="0& quot;></a ></div> ;</td>
</tr> ;
<tr >
<t d valign="to p" width="262 " height="2& quot;></t d>
</tr>
</table> </td>
<td valign="to p" width="1&q uot; height="68 3">< /td>
<td valign="to p" width="503 " height="68 3">
<table height="75 1" border="0& quot; cellpadding=&qu ot;0" cellspacing=&qu ot;0">< br /> <tr>
<t d valign="to p" width="503 " height="1& quot;></t d>
</tr> ;
<tr >
<t d valign="to p" width="503 " height="52 ">
< table cellpadding=&qu ot;0" cellspacing=&qu ot;0" border="0& quot;>
< ;tr>
&l t;td valign="to p" width="195 " height="52 " bgcolor="# 414141"> ;&nbsp;< /td>
<td valign="to p" width="1&q uot; height="52 "></ td>
&l t;td valign="to p" width="307 " height="52 " bgcolor="# 474747"> ;&nbsp;< /td>
</tr>
< /table> </td>
</t r>
<tr >
<t d valign="to p" width="503 " height="22 " style="bac kground-image:u rl(images/1_bg1 .gif) "><d iv style="mar gin:7 0 0 11px "><i mg src="image s/1_w10.gif&quo t; alt="" ; border="0& quot;></d iv></td&g t;
</t r>
<tr >
<t d valign="to p" width="503 " height="16 9">< img src="image s/1_p4.jpg" ; alt="" ; border="0& quot;></t d>
</t r>
<tr >
<t d valign="to p" width="503 " height="19 " style="bac kground-image:u rl(images/1_bg2 .gif) "><d iv style="mar gin:5 0 0 13px "><i mg src="image s/1_w11.gif&quo t; alt="" ; border="0& quot;></d iv></td&g t;
</t r>
<tr >
<t d valign="to p" width="503 " height="15 5">
< table cellpadding=&qu ot;0" cellspacing=&qu ot;0" border="0& quot;>
< ;tr>
&l t;td valign="to p" width="166 " height="15 5" bgcolor="# 131313" class="blo ck2">&l t;img src="image s/1_p5.jpg" ; alt="" ; border="0& quot;><di v style="mar gin:12 0 0 12px "><a href="#&qu ot;>Tomb Raider: Legend</a> ;<br>
<br style="lin e-height:5px ">
&l t;/div></ td>
&l t;td valign="to p" width="1&q uot; height="15 5">< /td>
&l t;td valign="to p" width="168 " height="15 5" bgcolor="# 131313" class="blo ck2">&l t;img src="image s/1_p6.jpg" ; alt="" ; border="0& quot;><di v style="mar gin:12 0 0 12px "><a href="#&qu ot;>The Elder Scrolls IV: Oblivion</a& gt;<br> <br style="lin e-height:5px ">
&l t;/div></ td>
&l t;td valign="to p" width="1&q uot; height="15 5">< /td>
&l t;td valign="to p" width="167 " height="15 5" bgcolor="# 131313" class="blo ck2">&l t;img src="image s/1_p7.jpg" ; alt="" ; border="0& quot;><di v style="mar gin:12 0 0 12px "><a href="#&qu ot;>Rise Of Legends</a&g t;<br>
<br style="lin e-height:5px ">
&l t;/div></ td>
< ;/tr>
< /table> </td> ;
</t r>
<tr >
<t d valign="to p" width="503 " height="21 " style="bac kground-image:u rl(images/1_bg3 .gif) " class="blo ck1">&l t;div style="mar gin:3 0 0 11px "><i mg src="image s/1_w12.gif&quo t; style="mar gin-right:280px ; vertical-align: middle" alt="" ; border="0& quot;><a href="#&qu ot;>read more stories</a&g t;</div>& lt;/td>
</t r>
<tr >
<t d width="503 " height="95 " valign="to p" bgcolor="# 1E1E1E" class="blo ck">< ;div align="cen ter"> <div class="sty le4" style="mar gin:12 0 0 12px ">News& lt;/div>
</ div>
<p>Friday , June 29, 2007 (08:09:34)</ p>
<p>The website is going great, thanks to the help of AllSyntax.com The best help you can get as far as PHP and Mysql coding goes. Great Guys!!</p> ;</td>
</tr> ;

<tr >
<t d valign="to p" width="503 " height="19 1" class="blo ck" bgcolor="# 1E1E1E"> ;&nbsp;< /td>
</tr> ;
<tr >
<t d valign="to p" width="503 " height="21 "></ td>
</t r>
</tabl e> < ;/td>
</tr>
</table > </td >
</tr>< br /> <tr> <td valign="to p" width="766 " height="36 "><d iv style="mar gin:21 0 0 17px ">
<div align="cen ter">&l t;br style="lin e-height:9px ">
</div>
</div>< ;/td>
</tr>
<tr> <td valign="to p" height="70 "><d iv align="cen ter"> <p>Copyri ght&copy; 2007, GamersElite </p>
</div>< ;/td>
</tr>
</table> ;
</td>
</tr>
</table>< br /> </body> </html>


This is the error message i get :
Parse error: parse error, unexpected $ in /home/gamereli/ public_html/ind ex.php on line 237

and this is the coresponding Statement : </html>

please if u make any code revisions.. paste it all below.. that way i can compare and learn from it. THAnk you.


    Viewed: 22,952 Times | Reply to This | To top
  This user is offline  sm0ke
  Subject: "re: Login menu" Posted: @ 7:09 pm on Jun 30 2007    

Member #: 168
Rank: User - (83)
Since: 06/05/06
Posts: 34
From: Manchester - UK

yep

change this:


Code:


<?

//Check if logged in
if($_SESSION[' logged_in'] == 1) {
echo("Wel come, would you like to go to the member Area.s"; // Make sure you include link to member area.
} else {
//html here
?>
<form name="log in" method="p ost" action="& lt;?php echo $_SERVER['PHP_ SELF']?>&q uot;>
<table align="le ft"> <tr>
<td align="ce nter"> Username:<in put type="tex t" id="usern ame" name="use rname"> ;</td>< ;/tr>
<tr>
<td align="ce nter"> Password:<in put type="pas sword" id="passw ord" name="pas sword"> ;</td>< ;/tr>
<tr>
<td align="ce nter"> <input type="sub mit" value="Su bmit" name="sub mit" id="submi t">< ;/td></tr >
<tr>
<td>Remem ber? <input type="che ckbox" name="sta y_in[]" checked=" yes">& lt;/td></ tr>
</table>< br /> </form>



to this:


Code:

<?

//Check if logged in
if($_SESSION[' logged_in'] == 1) {
echo("Wel come, would you like to go to the member Area.s"; // Make sure you include link to member area.
} else {
//html here
?>
<form name="log in" method="p ost" action="& lt;?php echo $_SERVER['PHP_ SELF']?>&q uot;>
<table align="le ft"> <tr>
<td align="ce nter"> Username:<in put type="tex t" id="usern ame" name="use rname"> ;</td>< ;/tr>
<tr>
<td align="ce nter"> Password:<in put type="pas sword" id="passw ord" name="pas sword"> ;</td>< ;/tr>
<tr>
<td align="ce nter"> <input type="sub mit" value="Su bmit" name="sub mit" id="submi t">< ;/td></tr >
<tr>
<td>Remem ber? <input type="che ckbox" name="sta y_in[]" checked=" yes">& lt;/td></ tr>
</table>< br /> </form> <?
}
?>



to remove the error and get the thing showing how you want.

to add the info you want is a bit different.

change this:


Code:

echo("Wel come, would you like to go to the member Area.s"; // Make sure you include link to member area.



to include all the information you want. You can style it with html.

If you want the last time they logged in, the best way is to query a database on login to update with the current timestamp using something like "NOW()&q uot; to insert to a datetime field and also to retrieve the last time they logged in, which is determined by a DB query updating the Last_logged_in field with the details of the current session when the user logs out. If you do it before they log out the last logged in time will show as the current time when the page refreshes.

Ask bs0d about a banner.

complete changed code:


Code:

<?
ob_start();
require_once($_ SERVER['DOCUME NT_ROOT'].'/d b_connect.php' ); ?>
<!DOCTYPE HTML PUBLIC "-//W3C// DTD HTML 4.01 Transitional//E N">
<html>
<head>
<title>Ga merElites.com&l t;/title>
<meta http-equiv=&qu ot;content-type " content=" text/html; charset=UTF-8& quot;>

<link href="sty le.css" rel="styl esheet" type="tex t/css"> ;
<style type="tex t/css"> ;
<!--
#apDiv1 {
position:absolu te;
left:305px;
top:29px;
width:33px;
height:36px;
z-index:1;
}
#apDiv2 {
position:absolu te;
left:267px;
top:41px;
width:33px;
height:9px;
z-index:1;
}
.style4 {font-size: 16px; font-weight: bold; color: #E52F00;}
-->
</style>< br /> </head> <body>
<table cellpadding=&q uot;0" cellspacing=&q uot;0" border="0 " align="le ft"> <tr>
<td valign="t op" width="76 6" height="8 10" class="co ntent"> ;
<table cellpadding=&q uot;0" cellspacing=&q uot;0" border="0 ">
<tr>
<td valign="t op" width="76 6" height="1 07"> <table cellpadding=&q uot;0" cellspacing=&q uot;0" border="0 ">
<tr>
<td valign="t op" width="26 2" height="1 07">&l t;img src="imag es/logo.gif&qu ot; alt="&qu ot; border="0 ">< /td>
<td valign="t op" width="50 4" height="1 07">&l t;div style="ma rgin:6 0 0 1px ">< img src="imag es/w1.gif" ; style="ma rgin-left:13px; margin-bottom:5 px " alt="&qu ot; border="0 ">< br><a href="#& quot;><im g src="imag es/k1.gif" ; alt="&qu ot; border="0 ">< /a><a href="#& quot;><im g src="imag es/k2.gif" ; alt="&qu ot; border="0 ">< /a><a href="#& quot;><im g src="imag es/k3.gif" ; alt="&qu ot; border="0 ">< /a><a href="#& quot;><im g src="imag es/k4.gif" ; alt="&qu ot; border="0 ">< /a><a href="#& quot;><im g src="imag es/k5.gif" ; alt="&qu ot; border="0 ">< /a><a href="#& quot;><im g src="imag es/k6.gif" ; alt="&qu ot; border="0 ">< /a><a href="#& quot;><im g src="imag es/k7.gif" ; alt="&qu ot; border="0 ">< /a><a href="#& quot;><im g src="imag es/k8.gif" ; alt="&qu ot; border="0 ">< /a><a href="#& quot;><im g src="imag es/k9.gif" ; alt="&qu ot; border="0 ">< /a><a href="#& quot;><im g src="imag es/k10.gif&quo t; alt="&qu ot; border="0 ">< /a><a href="#& quot;><im g src="imag es/k11.gif&quo t; alt="&qu ot; border="0 ">< /a><a href="#& quot;><im g src="imag es/k12.gif&quo t; alt="&qu ot; border="0 ">< /a><br> ;<a href="ind ex.html"& gt;<img src="imag es/m1-1.gif&qu ot; alt="&qu ot; border="0 ">< /a><a href="ind ex-1.html" ;><img src="imag es/m2.gif" ; alt="&qu ot; border="0 ">< /a><a href="#& quot;><im g src="imag es/m3.gif" ; alt="&qu ot; border="0 ">< /a><a href="#& quot;><im g src="imag es/m4.gif" ; alt="&qu ot; border="0 ">< /a><a href="#& quot;><im g src="imag es/m5.gif" ; alt="&qu ot; border="0 ">< /a><a href="#& quot;><im g src="imag es/m6.gif" ; alt="&qu ot; border="0 ">< /a><a href="#& quot;><im g src="imag es/m7.gif" ; alt="&qu ot; border="0 ">< /a><a href="#& quot;><im g src="imag es/m8.gif" ; alt="&qu ot; border="0 ">< /a></div& gt;</td>< br /> </tr>
</table> </td>
</tr>
<tr>
<td valign="t op" width="76 6" height="6 33"> <table cellpadding=&q uot;0" cellspacing=&q uot;0" border="0 ">
<tr>
<td valign="t op" width="26 2" height="6 83"> <table height="6 89" border="0 " cellpadding=&q uot;0" cellspacing=&q uot;0"> ;
<tr>
<td valign="t op" width="26 2" height="2 1" style="ba ckground-image: url(images/1_bg 1.gif) ">< div style="ma rgin:7 0 0 11px ">< img src="imag es/1_w1.gif&qu ot; alt="&qu ot; border="0 ">< /div></td >
</tr>
<tr>
<td width="26 2" height="3 3" valign="t op" bordercolor=&q uot;#EFEBEF&qu ot; bgcolor=" #595959"& gt;
<?

//Check if logged in
if($_SESSION[' logged_in'] == 1) {
echo("Wel come, would you like to go to the member Area.s"; // Make sure you include link to member area.
} else {
//html here
?>
<form name="log in" method="p ost" action="& lt;?php echo $_SERVER['PHP_ SELF']?>&q uot;>
<table align="le ft"> <tr>
<td align="ce nter"> Username:<in put type="tex t" id="usern ame" name="use rname"> ;</td>< ;/tr>
<tr>
<td align="ce nter"> Password:<in put type="pas sword" id="passw ord" name="pas sword"> ;</td>< ;/tr>
<tr>
<td align="ce nter"> <input type="sub mit" value="Su bmit" name="sub mit" id="submi t">< ;/td></tr >
<tr>
<td>Remem ber? <input type="che ckbox" name="sta y_in[]" checked=" yes">& lt;/td></ tr>
</table>< br /> </form>
<!--Changes- ->
<?
}
?>
<!--End Changes-->
</td>
</tr>
<tr>
<td height="1 2" valign="t op" bordercolor=&q uot;#EFEBEF&qu ot; bgcolor=" #595959"& gt;<p>&am p;nbsp;</p&g t;
<p>&n bsp;</p>< br /> <p>&n bsp;</p>& lt;/td>
</tr>
<tr>
<td valign="t op" width="26 2" height="2 1" style="ba ckground-image: url(images/1_bg 1.gif) ">< div style="ma rgin:7 0 0 11px ">< img src="imag es/1_w4.gif&qu ot; alt="&qu ot; border="0 ">< /div></td >
</tr>
<tr>
<td valign="t op" width="26 2" height="1 34" bgcolor=" #2B2B2B"& gt;
<table cellpadding=&q uot;0" cellspacing=&q uot;0" border="0 ">
<tr>
<td valign="t op" width="14 0" height="1 34"> <div style="ma rgin:17 0 0 11px ">< ul>
<li><a href="#& quot;>Action </a></ li>
<li><a href="#& quot;>1st-Pe rson Shooters</a& gt;</li>< br /> <li><a href="#& quot;>Advent ure</a>&l t;/li>
<li><a href="#& quot;>Mass Multiplayer< /a></li&g t;
<li><a href="#& quot;>Role-P laying</a> ;</li>
<li><a href="#& quot;>Real-T ime Strategy</a& gt;</li>< br /> </ul>< /div> </td>
<td valign="t op" width="12 2" height="1 34">&l t;div style="ma rgin:17 0 0 0px ">< ul>
<li><a href="#& quot;>Racing </a></ li>
<li><a href="#& quot;>Role-P laying</a> ;</li>
<li><a href="#& quot;>Tycoon </a></ li>
<li><a href="#& quot;>For Kids</a>& lt;/li>
<li><a href="#& quot;>Top Rated Games</a> </li>
<li><a href="#& quot;>Most Popular</a&g t;</li> </ul>< /div></td >
</tr>
</table> </td>
</tr>
<tr>
<td valign="t op" width="26 2" height="2 1" style="ba ckground-image: url(images/1_bg 1.gif) ">< div style="ma rgin:6 0 0 11px ">< img src="imag es/1_w5.gif&qu ot; alt="&qu ot; border="0 ">< img src="imag es/1_w6.gif&qu ot; alt="&qu ot; border="0 " style="ma rgin-left:52px ">< /div></td >
</tr>
<tr>
<td valign="t op" width="26 2" height="8 3" bgcolor=" #2B2B2B" class="bl ock1"> <div style="ma rgin:8 10 0 14px ">< img src="imag es/1_p1.jpg&qu ot; align="le ft" style="ma rgin-right:13px ;" alt="&qu ot; border="0 ">< br style="li ne-height:5px ">
<a href="#& quot;>World in Conflict</a& gt;<br> <br style="li ne-height:5px ">
</div>< ;/td>
</tr>
<tr>
<td valign="t op" width="26 2" height="1 ">< /td>
</tr>
<tr>
<td valign="t op" width="26 2" height="8 4" bgcolor=" #2B2B2B" class="bl ock1"> <div style="ma rgin:8 10 0 14px ">< img src="imag es/1_p2.jpg&qu ot; align="le ft" style="ma rgin-right:13px ;" alt="&qu ot; border="0 ">< br style="li ne-height:5px ">
<a href="#& quot;>Wolfpa ck Studios</a&g t;<br>
<br style="li ne-height:5px ">
</div>< ;/td>
</tr>
<tr>
<td valign="t op" width="26 2" height="1 ">< /td>
</tr>
<tr>
<td valign="t op" width="26 2" height="8 5" bgcolor=" #2B2B2B" class="bl ock1"> <div style="ma rgin:8 10 0 14px ">< img src="imag es/1_p3.jpg&qu ot; align="le ft" style="ma rgin-right:13px ;" alt="&qu ot; border="0 ">< br style="li ne-height:5px ">
<a href="#& quot;>Crysis </a><b r>
<br style="li ne-height:5px ">
</div>< ;/td>
</tr>
<tr>
<td valign="t op" width="26 2" height="1 ">< /td>
</tr>
<tr>
<td valign="t op" width="26 2" height="2 8" bgcolor=" #2B2B2B" class="bl ock2"> <div style="ma rgin:8 0 0 14px ">< a href="#& quot;>read more news</a>& lt;/div>< /td>
</tr>
<tr>
<td valign="t op" width="26 2" height="2 1" style="ba ckground-image: url(images/1_bg 4.gif) ">< div style="ma rgin:7 0 0 11px ">< img src="imag es/1_w7.gif&qu ot; alt="&qu ot; border="0 ">< /div></td >
</tr>
<tr>
<td valign="t op" width="26 2" height="7 0" bgcolor=" #4A4A4A"& gt;<form action=" " style="ma rgin:0; padding:0 ">< div style="ma rgin:16 0 0 10px ">< /div>
</form> <div style="ma rgin:5 0 0 14px ">< a href="#& quot;><im g src="imag es/1_w8.gif&qu ot; alt="&qu ot; border="0 ">< /a></div& gt;</td>< br /> </tr>
<tr>
<td valign="t op" width="26 2" height="2 ">< /td>
</tr>
</table> </td>
<td valign="t op" width="1 " height="6 83">&l t;/td>
<td valign="t op" width="50 3" height="6 83"> <table height="7 51" border="0 " cellpadding=&q uot;0" cellspacing=&q uot;0"> ;
<tr>
<td valign="t op" width="50 3" height="1 ">< /td>
</tr>
<tr>
<td valign="t op" width="50 3" height="5 2">
<table cellpadding=&q uot;0" cellspacing=&q uot;0" border="0 ">
<tr>
<td valign="t op" width="19 5" height="5 2" bgcolor=" #414141"& gt;&nbsp;&l t;/td>
<td valign="t op" width="1 " height="5 2">< ;/td>
<td valign="t op" width="30 7" height="5 2" bgcolor=" #474747"& gt;&nbsp;&l t;/td>
</tr>
</table> </td>
</tr>
<tr>
<td valign="t op" width="50 3" height="2 2" style="ba ckground-image: url(images/1_bg 1.gif) ">< div style="ma rgin:7 0 0 11px ">< img src="imag es/1_w10.gif&q uot; alt="&qu ot; border="0 ">< /div></td >
</tr>
<tr>
<td valign="t op" width="50 3" height="1 69">&l t;img src="imag es/1_p4.jpg&qu ot; alt="&qu ot; border="0 ">< /td>
</tr>
<tr>
<td valign="t op" width="50 3" height="1 9" style="ba ckground-image: url(images/1_bg 2.gif) ">< div style="ma rgin:5 0 0 13px ">< img src="imag es/1_w11.gif&q uot; alt="&qu ot; border="0 ">< /div></td >
</tr>
<tr>
<td valign="t op" width="50 3" height="1 55"> <table cellpadding=&q uot;0" cellspacing=&q uot;0" border="0 ">
<tr>
<td valign="t op" width="16 6" height="1 55" bgcolor=" #131313" class="bl ock2"> <img src="imag es/1_p5.jpg&qu ot; alt="&qu ot; border="0 ">< div style="ma rgin:12 0 0 12px ">< a href="#& quot;>Tomb Raider: Legend</a> ;<br>
<br style="li ne-height:5px ">
</div>< ;/td>
<td valign="t op" width="1 " height="1 55">&l t;/td>
<td valign="t op" width="16 8" height="1 55" bgcolor=" #131313" class="bl ock2"> <img src="imag es/1_p6.jpg&qu ot; alt="&qu ot; border="0 ">< div style="ma rgin:12 0 0 12px ">< a href="#& quot;>The Elder Scrolls IV: Oblivion</a& gt;<br> <br style="li ne-height:5px ">
</div>< ;/td>
<td valign="t op" width="1 " height="1 55">&l t;/td>
<td valign="t op" width="16 7" height="1 55" bgcolor=" #131313" class="bl ock2"> <img src="imag es/1_p7.jpg&qu ot; alt="&qu ot; border="0 ">< div style="ma rgin:12 0 0 12px ">< a href="#& quot;>Rise Of Legends</a&g t;<br>
<br style="li ne-height:5px ">
</div>< ;/td>
</tr>
</table> </td>
</tr>
<tr>
<td valign="t op" width="50 3" height="2 1" style="ba ckground-image: url(images/1_bg 3.gif) " class="bl ock1"> <div style="ma rgin:3 0 0 11px ">< img src="imag es/1_w12.gif&q uot; style="ma rgin-right:280p x; vertical-align: middle" alt="&qu ot; border="0 ">< a href="#& quot;>read more stories</a&g t;</div>& lt;/td>
</tr>
<tr>
<td width="50 3" height="9 5" valign="t op" bgcolor=" #1E1E1E" class="bl ock">& lt;div align="ce nter">
<div class="st yle4" style="ma rgin:12 0 0 12px ">News </div>
</div>
<p>Friday , June 29, 2007 (08:09:34)</ p>
<p>The website is going great, thanks to the help of AllSyntax.com The best help you can get as far as PHP and Mysql coding goes. Great Guys!!</p> ;</td>
</tr>

<tr>
<td valign="t op" width="50 3" height="1 91" class="bl ock" bgcolor=" #1E1E1E"& gt;&nbsp;&l t;/td>
</tr>
<tr>
<td valign="t op" width="50 3" height="2 1">< ;/td>
</tr>
</table> </td>
</tr>
</table> </td>
</tr>
<tr>
<td valign="t op" width="76 6" height="3 6">< ;div style="ma rgin:21 0 0 17px ">
<div align="ce nter"> <br style="li ne-height:9px ">
</div>
</div>< ;/td>
</tr>
<tr>
<td valign="t op" height="7 0">< ;div align="ce nter">
<p>Copyri ght&copy; 2007, GamersElite </p>
</div>< ;/td>
</tr>
</table>< br /> </td>
</tr>
</table>< br /> </body> </html>



Hope it helps out




Just because I dont care, doesnt mean I dont understand.

purepcs@hotmail
.co.uk |     Viewed: 22,946 Times | Reply to This | To top
  This user is offline  retarded
  Subject: "re: Login menu" Posted: @ 3:43 pm on Jul 01 2007    
Member #: 357
Rank: User - (18)
Since: 06/26/07
Posts: 22

hmm didnt work.. the new error i get is Parse error: parse error, unexpected ';' in /home/gamereli/ public_html/ind ex.php on line 63

which coresponds with this statement :
echo("Wel come, would you like to go to the member Area.s"; // Make sure you include link to member

Thanks for replying




    Viewed: 22,923 Times | Reply to This | To top
  This user is offline  sm0ke
  Subject: "re: Login menu" Posted: @ 4:02 pm on Jul 01 2007    

Member #: 168
Rank: User - (83)
Since: 06/05/06
Posts: 34
From: Manchester - UK

change:

echo("Wel come, would you like to go to the member Area.s";

to

echo("Wel come, would you like to go to the member Area.s";

(the smilies in the code prevented it from showing properly.)



Edited at 04:04:08 pm on 07/01/07


Just because I dont care, doesnt mean I dont understand.

purepcs@hotmail
.co.uk |     Viewed: 22,920 Times | Reply to This | To top
  This user is offline  sm0ke
  Subject: "re: Login menu" Posted: @ 4:04 pm on Jul 01 2007    

Member #: 168
Rank: User - (83)
Since: 06/05/06
Posts: 34
From: Manchester - UK

sorry, smilies keep messing it up

complete:

Code:


<?
ob_start();
require_once($_ SERVER['DOCUME NT_ROOT'].'/d b_connect.php' ); ?>
<!DOCTYPE HTML PUBLIC "-//W3C// DTD HTML 4.01 Transitional//E N">
<html>
<head>
<title>Ga merElites.com&l t;/title>
<meta http-equiv=&qu ot;content-type " content=" text/html; charset=UTF-8& quot;>

<link href="sty le.css" rel="styl esheet" type="tex t/css"> ;
<style type="tex t/css"> ;
<!--
#apDiv1 {
position:absolu te;
left:305px;
top:29px;
width:33px;
height:36px;
z-index:1;
}
#apDiv2 {
position:absolu te;
left:267px;
top:41px;
width:33px;
height:9px;
z-index:1;
}
.style4 {font-size: 16px; font-weight: bold; color: #E52F00;}
-->
</style>< br /> </head> <body>
<table cellpadding=&q uot;0" cellspacing=&q uot;0" border="0 " align="le ft"> <tr>
<td valign="t op" width="76 6" height="8 10" class="co ntent"> ;
<table cellpadding=&q uot;0" cellspacing=&q uot;0" border="0 ">
<tr>
<td valign="t op" width="76 6" height="1 07"> <table cellpadding=&q uot;0" cellspacing=&q uot;0" border="0 ">
<tr>
<td valign="t op" width="26 2" height="1 07">&l t;img src="imag es/logo.gif&qu ot; alt="&qu ot; border="0 ">< /td>
<td valign="t op" width="50 4" height="1 07">&l t;div style="ma rgin:6 0 0 1px ">< img src="imag es/w1.gif" ; style="ma rgin-left:13px; margin-bottom:5 px " alt="&qu ot; border="0 ">< br><a href="#& quot;><im g src="imag es/k1.gif" ; alt="&qu ot; border="0 ">< /a><a href="#& quot;><im g src="imag es/k2.gif" ; alt="&qu ot; border="0 ">< /a><a href="#& quot;><im g src="imag es/k3.gif" ; alt="&qu ot; border="0 ">< /a><a href="#& quot;><im g src="imag es/k4.gif" ; alt="&qu ot; border="0 ">< /a><a href="#& quot;><im g src="imag es/k5.gif" ; alt="&qu ot; border="0 ">< /a><a href="#& quot;><im g src="imag es/k6.gif" ; alt="&qu ot; border="0 ">< /a><a href="#& quot;><im g src="imag es/k7.gif" ; alt="&qu ot; border="0 ">< /a><a href="#& quot;><im g src="imag es/k8.gif" ; alt="&qu ot; border="0 ">< /a><a href="#& quot;><im g src="imag es/k9.gif" ; alt="&qu ot; border="0 ">< /a><a href="#& quot;><im g src="imag es/k10.gif&quo t; alt="&qu ot; border="0 ">< /a><a href="#& quot;><im g src="imag es/k11.gif&quo t; alt="&qu ot; border="0 ">< /a><a href="#& quot;><im g src="imag es/k12.gif&quo t; alt="&qu ot; border="0 ">< /a><br> ;<a href="ind ex.html"& gt;<img src="imag es/m1-1.gif&qu ot; alt="&qu ot; border="0 ">< /a><a href="ind ex-1.html" ;><img src="imag es/m2.gif" ; alt="&qu ot; border="0 ">< /a><a href="#& quot;><im g src="imag es/m3.gif" ; alt="&qu ot; border="0 ">< /a><a href="#& quot;><im g src="imag es/m4.gif" ; alt="&qu ot; border="0 ">< /a><a href="#& quot;><im g src="imag es/m5.gif" ; alt="&qu ot; border="0 ">< /a><a href="#& quot;><im g src="imag es/m6.gif" ; alt="&qu ot; border="0 ">< /a><a href="#& quot;><im g src="imag es/m7.gif" ; alt="&qu ot; border="0 ">< /a><a href="#& quot;><im g src="imag es/m8.gif" ; alt="&qu ot; border="0 ">< /a></div& gt;</td>< br /> </tr>
</table> </td>
</tr>
<tr>
<td valign="t op" width="76 6" height="6 33"> <table cellpadding=&q uot;0" cellspacing=&q uot;0" border="0 ">
<tr>
<td valign="t op" width="26 2" height="6 83"> <table height="6 89" border="0 " cellpadding=&q uot;0" cellspacing=&q uot;0"> ;
<tr>
<td valign="t op" width="26 2" height="2 1" style="ba ckground-image: url(images/1_bg 1.gif) ">< div style="ma rgin:7 0 0 11px ">< img src="imag es/1_w1.gif&qu ot; alt="&qu ot; border="0 ">< /div></td >
</tr>
<tr>
<td width="26 2" height="3 3" valign="t op" bordercolor=&q uot;#EFEBEF&qu ot; bgcolor=" #595959"& gt;
<?

//Check if logged in
if($_SESSION[' logged_in'] == 1) {
echo("Wel come, would you like to go to the member Area.s"); // Make sure you include link to member area.
} else {
//html here
?>
<form name="log in" method="p ost" action="& lt;?php echo $_SERVER['PHP_ SELF']?>&q uot;>
<table align="le ft"> <tr>
<td align="ce nter"> Username:<in put type="tex t" id="usern ame" name="use rname"> ;</td>< ;/tr>
<tr>
<td align="ce nter"> Password:<in put type="pas sword" id="passw ord" name="pas sword"> ;</td>< ;/tr>
<tr>
<td align="ce nter"> <input type="sub mit" value="Su bmit" name="sub mit" id="submi t">< ;/td></tr >
<tr>
<td>Remem ber? <input type="che ckbox" name="sta y_in[]" checked=" yes">& lt;/td></ tr>
</table>< br /> </form> <?
}
?>
</td>
</tr>
<tr>
<td height="1 2" valign="t op" bordercolor=&q uot;#EFEBEF&qu ot; bgcolor=" #595959"& gt;<p>&am p;nbsp;</p&g t;
<p>&n bsp;</p>< br /> <p>&n bsp;</p>& lt;/td>
</tr>
<tr>
<td valign="t op" width="26 2" height="2 1" style="ba ckground-image: url(images/1_bg 1.gif) ">< div style="ma rgin:7 0 0 11px ">< img src="imag es/1_w4.gif&qu ot; alt="&qu ot; border="0 ">< /div></td >
</tr>
<tr>
<td valign="t op" width="26 2" height="1 34" bgcolor=" #2B2B2B"& gt;
<table cellpadding=&q uot;0" cellspacing=&q uot;0" border="0 ">
<tr>
<td valign="t op" width="14 0" height="1 34"> <div style="ma rgin:17 0 0 11px ">< ul>
<li><a href="#& quot;>Action </a></ li>
<li><a href="#& quot;>1st-Pe rson Shooters</a& gt;</li>< br /> <li><a href="#& quot;>Advent ure</a>&l t;/li>
<li><a href="#& quot;>Mass Multiplayer< /a></li&g t;
<li><a href="#& quot;>Role-P laying</a> ;</li>
<li><a href="#& quot;>Real-T ime Strategy</a& gt;</li>< br /> </ul>< /div> </td>
<td valign="t op" width="12 2" height="1 34">&l t;div style="ma rgin:17 0 0 0px ">< ul>
<li><a href="#& quot;>Racing </a></ li>
<li><a href="#& quot;>Role-P laying</a> ;</li>
<li><a href="#& quot;>Tycoon </a></ li>
<li><a href="#& quot;>For Kids</a>& lt;/li>
<li><a href="#& quot;>Top Rated Games</a> </li>
<li><a href="#& quot;>Most Popular</a&g t;</li> </ul>< /div></td >
</tr>
</table> </td>
</tr>
<tr>
<td valign="t op" width="26 2" height="2 1" style="ba ckground-image: url(images/1_bg 1.gif) ">< div style="ma rgin:6 0 0 11px ">< img src="imag es/1_w5.gif&qu ot; alt="&qu ot; border="0 ">< img src="imag es/1_w6.gif&qu ot; alt="&qu ot; border="0 " style="ma rgin-left:52px ">< /div></td >
</tr>
<tr>
<td valign="t op" width="26 2" height="8 3" bgcolor=" #2B2B2B" class="bl ock1"> <div style="ma rgin:8 10 0 14px ">< img src="imag es/1_p1.jpg&qu ot; align="le ft" style="ma rgin-right:13px ;" alt="&qu ot; border="0 ">< br style="li ne-height:5px ">
<a href="#& quot;>World in Conflict</a& gt;<br> <br style="li ne-height:5px ">
</div>< ;/td>
</tr>
<tr>
<td valign="t op" width="26 2" height="1 ">< /td>
</tr>
<tr>
<td valign="t op" width="26 2" height="8 4" bgcolor=" #2B2B2B" class="bl ock1"> <div style="ma rgin:8 10 0 14px ">< img src="imag es/1_p2.jpg&qu ot; align="le ft" style="ma rgin-right:13px ;" alt="&qu ot; border="0 ">< br style="li ne-height:5px ">
<a href="#& quot;>Wolfpa ck Studios</a&g t;<br>
<br style="li ne-height:5px ">
</div>< ;/td>
</tr>
<tr>
<td valign="t op" width="26 2" height="1 ">< /td>
</tr>
<tr>
<td valign="t op" width="26 2" height="8 5" bgcolor=" #2B2B2B" class="bl ock1"> <div style="ma rgin:8 10 0 14px ">< img src="imag es/1_p3.jpg&qu ot; align="le ft" style="ma rgin-right:13px ;" alt="&qu ot; border="0 ">< br style="li ne-height:5px ">
<a href="#& quot;>Crysis </a><b r>
<br style="li ne-height:5px ">
</div>< ;/td>
</tr>
<tr>
<td valign="t op" width="26 2" height="1 ">< /td>
</tr>
<tr>
<td valign="t op" width="26 2" height="2 8" bgcolor=" #2B2B2B" class="bl ock2"> <div style="ma rgin:8 0 0 14px ">< a href="#& quot;>read more news</a>& lt;/div>< /td>
</tr>
<tr>
<td valign="t op" width="26 2" height="2 1" style="ba ckground-image: url(images/1_bg 4.gif) ">< div style="ma rgin:7 0 0 11px ">< img src="imag es/1_w7.gif&qu ot; alt="&qu ot; border="0 ">< /div></td >
</tr>
<tr>
<td valign="t op" width="26 2" height="7 0" bgcolor=" #4A4A4A"& gt;<form action=" " style="ma rgin:0; padding:0 ">< div style="ma rgin:16 0 0 10px ">< /div>
</form> <div style="ma rgin:5 0 0 14px ">< a href="#& quot;><im g src="imag es/1_w8.gif&qu ot; alt="&qu ot; border="0 ">< /a></div& gt;</td>< br /> </tr>
<tr>
<td valign="t op" width="26 2" height="2 ">< /td>
</tr>
</table> </td>
<td valign="t op" width="1 " height="6 83">&l t;/td>
<td valign="t op" width="50 3" height="6 83"> <table height="7 51" border="0 " cellpadding=&q uot;0" cellspacing=&q uot;0"> ;
<tr>
<td valign="t op" width="50 3" height="1 ">< /td>
</tr>
<tr>
<td valign="t op" width="50 3" height="5 2">
<table cellpadding=&q uot;0" cellspacing=&q uot;0" border="0 ">
<tr>
<td valign="t op" width="19 5" height="5 2" bgcolor=" #414141"& gt;&nbsp;&l t;/td>
<td valign="t op" width="1 " height="5 2">< ;/td>
<td valign="t op" width="30 7" height="5 2" bgcolor=" #474747"& gt;&nbsp;&l t;/td>
</tr>
</table> </td>
</tr>
<tr>
<td valign="t op" width="50 3" height="2 2" style="ba ckground-image: url(images/1_bg 1.gif) ">< div style="ma rgin:7 0 0 11px ">< img src="imag es/1_w10.gif&q uot; alt="&qu ot; border="0 ">< /div></td >
</tr>
<tr>
<td valign="t op" width="50 3" height="1 69">&l t;img src="imag es/1_p4.jpg&qu ot; alt="&qu ot; border="0 ">< /td>
</tr>
<tr>
<td valign="t op" width="50 3" height="1 9" style="ba ckground-image: url(images/1_bg 2.gif) ">< div style="ma rgin:5 0 0 13px ">< img src="imag es/1_w11.gif&q uot; alt="&qu ot; border="0 ">< /div></td >
</tr>
<tr>
<td valign="t op" width="50 3" height="1 55"> <table cellpadding=&q uot;0" cellspacing=&q uot;0" border="0 ">
<tr>
<td valign="t op" width="16 6" height="1 55" bgcolor=" #131313" class="bl ock2"> <img src="imag es/1_p5.jpg&qu ot; alt="&qu ot; border="0 ">< div style="ma rgin:12 0 0 12px ">< a href="#& quot;>Tomb Raider: Legend</a> ;<br>
<br style="li ne-height:5px ">
</div>< ;/td>
<td valign="t op" width="1 " height="1 55">&l t;/td>
<td valign="t op" width="16 8" height="1 55" bgcolor=" #131313" class="bl ock2"> <img src="imag es/1_p6.jpg&qu ot; alt="&qu ot; border="0 ">< div style="ma rgin:12 0 0 12px ">< a href="#& quot;>The Elder Scrolls IV: Oblivion</a& gt;<br> <br style="li ne-height:5px ">
</div>< ;/td>
<td valign="t op" width="1 " height="1 55">&l t;/td>
<td valign="t op" width="16 7" height="1 55" bgcolor=" #131313" class="bl ock2"> <img src="imag es/1_p7.jpg&qu ot; alt="&qu ot; border="0 ">< div style="ma rgin:12 0 0 12px ">< a href="#& quot;>Rise Of Legends</a&g t;<br>
<br style="li ne-height:5px ">
</div>< ;/td>
</tr>
</table> </td>
</tr>
<tr>
<td valign="t op" width="50 3" height="2 1" style="ba ckground-image: url(images/1_bg 3.gif) " class="bl ock1"> <div style="ma rgin:3 0 0 11px ">< img src="imag es/1_w12.gif&q uot; style="ma rgin-right:280p x; vertical-align: middle" alt="&qu ot; border="0 ">< a href="#& quot;>read more stories</a&g t;</div>& lt;/td>
</tr>
<tr>
<td width="50 3" height="9 5" valign="t op" bgcolor=" #1E1E1E" class="bl ock">& lt;div align="ce nter">
<div class="st yle4" style="ma rgin:12 0 0 12px ">News </div>
</div>
<p>Friday , June 29, 2007 (08:09:34)</ p>
<p>The website is going great, thanks to the help of AllSyntax.com The best help you can get as far as PHP and Mysql coding goes. Great Guys!!</p> ;</td>
</tr>

<tr>
<td valign="t op" width="50 3" height="1 91" class="bl ock" bgcolor=" #1E1E1E"& gt;&nbsp;&l t;/td>
</tr>
<tr>
<td valign="t op" width="50 3" height="2 1">< ;/td>
</tr>
</table> </td>
</tr>
</table> </td>
</tr>
<tr>
<td valign="t op" width="76 6" height="3 6">< ;div style="ma rgin:21 0 0 17px ">
<div align="ce nter"> <br style="li ne-height:9px ">
</div>
</div>< ;/td>
</tr>
<tr>
<td valign="t op" height="7 0">< ;div align="ce nter">
<p>Copyri ght&copy; 2007, GamersElite </p>
</div>< ;/td>
</tr>
</table>< br /> </td>
</tr>
</table>< br /> </body> </html>




Just because I dont care, doesnt mean I dont understand.

purepcs@hotmail
.co.uk |     Viewed: 22,914 Times | Reply to This | To top
  This user is offline  bs0d
  Subject: "re: Login menu" Posted: @ 4:46 pm on Jul 01 2007    

Member #: 1
Rank: Admin. - (1,505)
Since: 02/06/05
Posts: 600
From: USA

Yes, click the disable smilies option at the bottom of the reply box and this should prevent smilies in code.

Looks like you figured it out though!




-bs0d | AllSyntax.com

    Viewed: 22,910 Times | Reply to This | To top
  This user is offline  sm0ke
  Subject: "re: Login menu" Posted: @ 5:01 pm on Jul 01 2007    

Member #: 168
Rank: User - (83)
Since: 06/05/06
Posts: 34
From: Manchester - UK

heh, yeah. I was reading it as though it was to enable smilies for some strange reason.

Not to worry tho.




Just because I dont care, doesnt mean I dont understand.

purepcs@hotmail
.co.uk |     Viewed: 22,906 Times | Reply to This | To top
  This user is offline  retarded
  Subject: "re: Login menu" Posted: @ 9:04 pm on Jul 01 2007    
Member #: 357
Rank: User - (18)
Since: 06/26/07
Posts: 22

doesnt work Right.. if i type in wrong username and pass it just redirects to index.php
and if i type in correct it does the same...

lol i kind of need the website up fast..
just asking cuz im curious but how much would one of you guys charge me to do the following..: i would provide all the graphics ofcourse..

But for my Index page i want the following..

When someone comes to my website, if they are not logged in, it says welcome Guest, you can login below or register a free account, once they log in i want it to redirect to the index page, but then i want it to display like this

Welcome "username "
last login:
posts:
points:
Profile | Invite | Contact Admin |
and i want all those functional.. lol

and i need a functional search bar that can be used to search for games. or users.

I Would love to do this site my self.. but i think it will take me months. lol

how much do u guys think that would run me.. i already have a lot of scripts done.




    Viewed: 22,895 Times | Reply to This | To top
  This user is offline  BoricuaLayz
  Subject: "re: Login menu" Posted: @ 11:36 pm on Jul 01 2007    
Member #: 356
Rank: User - (30)
Since: 06/25/07
Posts: 44
From: Florida

yea i get that same problem if the user signs in correctly it doesnt put that information in the session

and when i include session_start() ;
anyone can get into the member area just be clicking submit




    Viewed: 22,884 Times | Reply to This | To top
  This user is offline  sm0ke
  Subject: "re: Login menu" Posted: @ 12:34 am on Jul 02 2007    

Member #: 168
Rank: User - (83)
Since: 06/05/06
Posts: 34
From: Manchester - UK

Are you including any info for the session? I can see the db_connect.php (dont know whats in there) but your telling the form to process itself on the same page and not including any queries, functions etc to log the user in and not starting a session anywhere. I've not actually read the members system tutorial but am sure you will find the information in there to accomplish what you want.

As for costs involved - you would need to be more specific IE: what happens in the members area, what special priveleges and functions do they have, do you want usergroups and userlevels? the list of questions goes on and on. Plus asking people to work with a bunch of scripts from different places and make them work, is not as easy as you might think, probably 8 out of 10 of the scripts will have different ways of connecting to and querying the database, storing script essential variables etc which to trawl through and make nice clean code, would cost a lot - just for the ballache of having to do it.

Guestimate would be




Just because I dont care, doesnt mean I dont understand.

purepcs@hotmail
.co.uk |     Viewed: 22,875 Times | Reply to This | To top
  This user is offline  BoricuaLayz
  Subject: "re: Login menu" Posted: @ 12:53 am on Jul 02 2007    
Member #: 356
Rank: User - (30)
Since: 06/25/07
Posts: 44
From: Florida

My script looks like this


Code:

<?
require_once($_ SERVER['DOCUME NT_ROOT'].'/d b_connect.php' );


//IF SUBMIT BUTTON PRESSED
if(isset($_POST ['submit'])) {

if(!$_POST['us ername']) header("L ocation: http://www.bori cualayz.com/pag e11.php") ;
if(!$_POST['pa ssword']) header("L ocation: http://www.bori cualayz.com/pag e11.php") ;

//set cookie if checked
if(!empty($_POS T['stay_in']) ) {
$joined =''.$_POST[' username'].'[ ]'.md5($_POST[ 'password']). '';
setcookie(&quo t;login_cookie ", $joined, time()+3600, "/secure/ ", "boricual ayz.com" );
} //end if
//verify user...
$get_user = mysql_query(&q uot;SELECT * FROM `members` WHERE username = '".$_POS T['username'] ."' AND

user_password = '".md5($ _POST['passwor d'])."' ");
$q = mysql_fetch_obj ect($get_user);
if(!$q) header("L ocation: http://www.bori cualayz.com/pag e11.php") ;

//set session variables
$_SESSION['log ged_in'] = 1;
$_SESSION['use rname'] = $_POST['userna me'];
$_SESSION['pas sword'] = $_POST['passwo rd'];
session_write_c lose();

header("L ocation: http://www.bori cualayz.com/Mem ber Area/index.php ");

}

if($_SESSION[' logged_in'] == 1) {
echo ("<htm l><a href='http://w ww.boricualayz. com/Member Area/index.php '>Back to Member Area &raquo;< /a></html >"); }

if($_SESSION[' logged_in'] == 0) {
echo ("<for m name='login' method='post' action=". $_SERVER['PHP_ SELF']." >
<table> <tr>
<td>Usern ame:<center& gt;<input type='text' id='username' name='username '></td&g t;</center&g t;
</tr>
<tr>
<td>Passw ord:<center& gt;<input type='password ' id='password' name='password '></td&g t;</center&g t;
</tr>
<tr>
<td><c enter><in put type='submit' value='Submit ' name='submit' id='submit'&g t;</td>&l t;/center> </tr>
<tr>
<td>Remem ber? <input type='checkbox ' name='stay_in[ ]' checked='yes' ></td>
</tr>
</table>< br /> </form> <p></p >
<p></p >
<a href='page7.ph p'>Sign Up</a>&q uot;
);
}
?>



The problem is when the user logs in correctly it still redirects them to page11.php so am guessing that nothing is getting sent into the session.

this is what is supposed to be put in the session

$_SESSION['log ged_in'] = 1;
$_SESSION['use rname'] = $_POST['userna me'];
$_SESSION['pas sword'] = $_POST['passwo rd'];

am i supposed to include session_start() ; on the page becasue if i do then anyone can log in just be pressing submit




    Viewed: 22,867 Times | Reply to This | To top
  This user is offline  bs0d
  Subject: "re: Login menu" Posted: @ 12:34 am on Jul 02 2007    

Member #: 1
Rank: Admin. - (1,505)
Since: 02/06/05
Posts: 600
From: USA

In regards to the banner, all I have is the image you see at the tops of the pages. It's almost the size you want, you can use it?

Smoke is right about last login's. Just setup a column in the members table for last_login and store time(); in it when they login.

BoricuaLayz, start a new thread and provide you're code. We want to try to not get multiple topics started under one topic. It makes it confusing as to who's resonse is to who's.

Finally, retarded.

Make sure the default for $_SESSION['log ged_in'] is set to zero (0). Also, review your structure. Follow the Complete Members System in its most basic terms. Use the die function to kill the script if it doesn't meet the conditions you set for it. Your code looks mostly like HTML, I think I saw one condition. To better help others understand your script just put a comment that contains a brief note of what should be there.




-bs0d | AllSyntax.com

    Viewed: 22,865 Times | Reply to This | To top
  This user is offline  BoricuaLayz
  Subject: "re: Login menu" Posted: @ 2:21 am on Jul 02 2007    
Member #: 356
Rank: User - (30)
Since: 06/25/07
Posts: 44
From: Florida

i got mine working fine




    Viewed: 22,862 Times | Reply to This | To top
  This user is offline  retarded
  Subject: "re: Login menu" Posted: @ 4:45 am on Jul 02 2007    
Member #: 357
Rank: User - (18)
Since: 06/26/07
Posts: 22

i cant use it as a TOp banner.. i need it in this shape

===========
" "
" "
" "
" "
" "
===========
i want to put it on the right side of my website.. i want it to be visible.. like on my index page




    Viewed: 22,838 Times | Reply to This | To top
  This user is offline  retarded
  Subject: "OK lol" Posted: @ 9:01 pm on Jul 02 2007    
Member #: 357
Rank: User - (18)
Since: 06/26/07
Posts: 22

OK im looking at this wrong.. maybe i should just intergrate my Existing login script into my Index page..

im not sure how to go about that..
and how to control the position of it




    Viewed: 22,818 Times | Reply to This | To top
  This user is offline  BoricuaLayz
  Subject: "re: Login menu" Posted: @ 12:50 am on Jul 03 2007    
Member #: 356
Rank: User - (30)
Since: 06/25/07
Posts: 44
From: Florida

here this is the code i use and mine works great
all you have to do is replace the links with your own links
i maked them LINK and the name of the page you have to link it to


Code:

<?
require_once($_ SERVER['DOCUME NT_ROOT'].'/d b_connect.php' );


//IF SUBMIT BUTTON PRESSED
if(isset($_POST ['submit'])) {

if(!$_POST['us ername']) header("L ocation: LINK log in page"); if(!$_POST['pa ssword']) header("L ocation: LINK log in page");
//set cookie if checked
if(!empty($_POS T['stay_in']) ) {
$joined =''.$_POST[' username'].'[ ]'.md5($_POST[ 'password']). '';
setcookie(&quo t;login_cookie ", $joined, time()+3600, "/secure/ ", "boricual ayz.com" );
} //end if
//verify user...
$get_user = mysql_query(&q uot;SELECT * FROM `members` WHERE username = '".$_POS T['username'] ."' AND

user_password = '".md5($ _POST['passwor d'])."' ");
$q = mysql_fetch_obj ect($get_user);
if(!$q) header("L ocation: LINK log in page");
//set session variables
$_SESSION['log ged_in'] = 1;
$_SESSION['use rname'] = $_POST['userna me'];
$_SESSION['pas sword'] = $_POST['passwo rd'];
session_write_c lose();

header("L ocation: LINK Member Page");
}

if($_SESSION[' logged_in'] == 1) {
echo ("<htm l><a href='LINK Members page'>Back to Member Area &raquo;< /a></html >"); } else {
?>
<form name='login' method='post' action="L ogin page">
<table> <tr>
<td>Usern ame:<center& gt;<input type='text' id='username' name='username '></td&g t;</center&g t;
</tr>
<tr>
<td>Passw ord:<center& gt;<input type='password ' id='password' name='password '></td&g t;</center&g t;
</tr>
<tr>
<td><c enter><in put type='submit' value='Submit ' name='submit' id='submit'&g t;</td>&l t;/center> </tr>
<tr>
<td>Remem ber? <input type='checkbox ' name='stay_in[ ]' checked='yes' ></td>
</tr>
</table>< br /> </form> <p></p >
<p></p >
<a href='LINK Registration page'>Sign Up</a>
<?
}
?>




    Viewed: 22,812 Times | Reply to This | To top
Viewing Page: 1 of 1


1 |

You must be logged in to post on the forums. Login or Register








"AllSyntax.com" Copyright © 2002-2018; All rights lefted, all lefts righted.
Privacy Policy  |  Internet Rank