Dobakat Posted April 25, 2006 Share Posted April 25, 2006 Well I have had these problem for a while, and can't fix it. I am going to post the code for two pages. [b]Page 1~ /register2.php[/b][code]<?include("include/session.php");?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Istari Guild</title><link rel="STYLESHEET" href="/style.css" type="text/css"><style type="text/css"><!--.style1 { font-size: 28px; color: FFBA27;}.style3 {color: #666666}.style5 {font-size: 12px}--></style></head><body bgcolor="FFFFFF"><div align="center"><table width="750" border="0" cellpadding="0" cellspacing="0"> <tr> <td colspan="3" width="750"> <table width="750" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="750" colspan="3"><span class="style1">Istari Guild </span></td> </tr> <tr> <td width="330">"Together we stand, together we die!" </td> <td width="400" align="right"> <table width="400" border="0" cellpadding="0" cellspacing="0"> <tr> <td align="right" height="20"> <FORM ACTION="http://www.tibia.com/community/?subtopic=character" METHOD=post> <span class="style3">Search for Character</span> <INPUT NAME="name" VALUE=""SIZE=20 MAXLENGTH=29> <input name="Submit" type="submit" value="Search"> </FORM> </tr> </table> </td> <td width="20"></td> </tr> </table> </td> </tr> <tr></tr> <tr> <td colspan="3" height="1" bgcolor="CCCCCC"></td> </tr> <tr> <td colspan="3" height="10" bgcolor="FFFFFF"></td> </tr> <tr> <td width="170" bgcolor="FFFFFF" valign="top"> <span style="font-size:6px"><br></span> <div align="center"> <table width="140" border="0" cellpadding="0" cellspacing="0"> <tr> <td><?php include($_SERVER['DOCUMENT_ROOT'].'/menu.php'); ?></td> </tr> </table> <br><span style="font-size:6px"><br></span> <table width="140" border="0" cellpadding="0" cellspacing="0"> <tr> <td colspan="3" height="1" bgcolor="AAAAAA"></td> </tr> <tr> <td width="1" bgcolor="AAAAAA" rowspan="5"></td> <td width="138" height="26" bgcolor="F9F9F9" style="color:FFBA27;font-size:14px"> <div align="center"> Announcements </div></td> <td width="1" bgcolor="AAAAAA" rowspan="5"></td> </tr> <tr> <td height="1" bgcolor="AAAAAA"></td> </tr> <tr> <td bgcolor="FFFFFF"> <table width="138" border="0" cellpadding="7" cellspacing="0"> <tr> <td style="color:#666666"><div align="left"> <?php include($_SERVER['DOCUMENT_ROOT'].'/announcements.php'); ?> </div></td> </tr> </table> </td> </tr> <tr> <td height="1" bgcolor="AAAAAA"></td> </tr> </table> <br> <br> <p style="font-size:6px"><br> </p> </div> </td> <td width="1" bgcolor="CCCCCC"></td> <td width="579" valign="top"> <span style="font-size:6px"><br></span> <div align="center"> <table width="549" border="0" cellpadding="0" cellspacing="0"> <tr> <td colspan="4" height="1" bgcolor="AAAAAA"></td> <td width="5" height="1" bgcolor="FFFFFF"></td> </tr> <tr> <td width="1" bgcolor="AAAAAA"></td> <td rowspan="2" colspan="2" width="542" height="27" bgcolor="F9F9F9" style="color:FFBA27;font-size:15px"> Welcome!</td> <td width="1" bgcolor="AAAAAA"></td> <td width="5" height="4" bgcolor="FFFFFF"></td> </tr> <tr> <td width="1" bgcolor="AAAAAA"></td> <td width="1" bgcolor="AAAAAA"></td> <td width="5" bgcolor="F0F0F0" height="23"></td> </tr> <tr> <td width="1" bgcolor="AAAAAA"></td> <td colspan="2" height="1" bgcolor="AAAAAA"></td> <td width="1" bgcolor="AAAAAA"></td> <td width="5" bgcolor="F0F0F0"></td> </tr> <tr> <td width="1" height="206" bgcolor="AAAAAA"></td> <td colspan="2" bgcolor="FFFFFF"><table width="542" border="0" cellpadding="17" cellspacing="0"> <tr> <td style="color:#666666;line-height:1.6em"><div align="justify"> <p><?/** * The user is already logged in, not allowed to register. */if($session->logged_in){ echo "<h1>Registered</h1>"; echo "<p>We're sorry <b>$session->username</b>, but you've already registered. " ."<a href=\"main.php\">Main</a>.</p>";} $user=$_POST['user']; $random = $session->generateRandStr(8)?><h1>Register Step (2) <span class="style5"></span></h1><p><span class="style5">Now, to demonstrate that you own <strong> <? echo $user; ?> </strong> you only have to edit your profile in www.tibia.com and add the following code to your character description (comment):</span></p><p align="center"><strong><span class="style5"> <strong> <? echo $random; ?> </strong> <br><span class="style5">(This is not your password)</span></strong></p><p align="left"><span class="style5"><br> </span><span class="style5">Here are some intructions in case you don't know how to do it. <br> • Go to Tibia homepage and login there (www.tibia.com).<br> • Edit your character description (Characters ... Edit)<br> • Write the code as part of the comments (Comments)<br> • Save the changes (Submit)<br> •Press this button when you have done it.</span></p> <form action="register3.php" method="POST"><table align="center" border="0" cellspacing="0" cellpadding="3"><tr><td width="240" align="right"> <div align="center"> <input type="hidden" name="user" value=" <? $user ?>"> <input type="hidden" name="random" value =" <? $random ?>"> <input type="submit" value="Next"> </div></td></tr><tr><td align="left"><div align="center"><a href="main.php">Back to Main</a></div></td></tr></table></form></p> </div></td> </tr> </table></td> <td width="1" bgcolor="AAAAAA"></td> <td width="5" bgcolor="F0F0F0"></td> </tr> <tr> <td width="1" bgcolor="AAAAAA"></td> <td colspan="2" height="1" bgcolor="AAAAAA"></td> <td width="1" bgcolor="AAAAAA"></td> <td width="5" bgcolor="F0F0F0"></td> </tr> <tr> <td width="1" height="5" bgcolor="FFFFFF"></td> <td width="4" height="5" bgcolor="FFFFFF"></td> <td width="538" height="5" bgcolor="F0F0F0"></td> <td width="1" height="5" bgcolor="F0F0F0"></td> <td width="5" height="5" bgcolor="F0F0F0"></td> </tr> </table> <span style="font-size:6px"><br> </span> </div> </td> </tr> <tr> <td colspan="3" height="10" bgcolor="FFFFFF"></td> </tr> <tr> <td colspan="3" height="1" bgcolor="CCCCCC"></td> </tr> <tr> <td colspan="3" height="5" bgcolor="FFFFFF"></td> </tr> <tr> <td colspan="3" bgcolor="FFFFFF" align="right"><p>Copyright © 2006, <strong>Dobakat</strong></a>. All Rights Reserved.<br> The only official site of Tibia is <strong>www.tibia.com</strong>.<br> Tibia is a copyright of CipSoft GmbH, 2006.</p> </td> </tr></table></div></body></html>[/code] [b]Page 2~ /register3.php[/b][b]Parse error: parse error, unexpected T_VARIABLE in /home/dobakat/public_html/members/register3.php on line 150[/b][code]<?include("include/session.php");?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Istari Guild</title><link rel="STYLESHEET" href="/style.css" type="text/css"><style type="text/css"><!--.style1 { font-size: 28px; color: FFBA27;}.style3 {color: #666666}.style5 {font-size: 12px}--></style></head><body bgcolor="FFFFFF"><div align="center"><table width="750" border="0" cellpadding="0" cellspacing="0"> <tr> <td colspan="3" width="750"> <table width="750" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="750" colspan="3"><span class="style1">Istari Guild </span></td> </tr> <tr> <td width="330">"Together we stand, together we die!" </td> <td width="400" align="right"> <table width="400" border="0" cellpadding="0" cellspacing="0"> <tr> <td align="right" height="20"> <FORM ACTION="http://www.tibia.com/community/?subtopic=character" METHOD=post> <span class="style3">Search for Character</span> <INPUT NAME="name" VALUE=""SIZE=20 MAXLENGTH=29> <input name="Submit" type="submit" value="Search"> </FORM> </tr> </table> </td> <td width="20"></td> </tr> </table> </td> </tr> <tr></tr> <tr> <td colspan="3" height="1" bgcolor="CCCCCC"></td> </tr> <tr> <td colspan="3" height="10" bgcolor="FFFFFF"></td> </tr> <tr> <td width="170" bgcolor="FFFFFF" valign="top"> <span style="font-size:6px"><br></span> <div align="center"> <table width="140" border="0" cellpadding="0" cellspacing="0"> <tr> <td><?php include($_SERVER['DOCUMENT_ROOT'].'/menu.php'); ?></td> </tr> </table> <br><span style="font-size:6px"><br></span> <table width="140" border="0" cellpadding="0" cellspacing="0"> <tr> <td colspan="3" height="1" bgcolor="AAAAAA"></td> </tr> <tr> <td width="1" bgcolor="AAAAAA" rowspan="5"></td> <td width="138" height="26" bgcolor="F9F9F9" style="color:FFBA27;font-size:14px"> <div align="center"> Announcements </div></td> <td width="1" bgcolor="AAAAAA" rowspan="5"></td> </tr> <tr> <td height="1" bgcolor="AAAAAA"></td> </tr> <tr> <td bgcolor="FFFFFF"> <table width="138" border="0" cellpadding="7" cellspacing="0"> <tr> <td style="color:#666666"><div align="left"> <?php include($_SERVER['DOCUMENT_ROOT'].'/announcements.php'); ?> </div></td> </tr> </table> </td> </tr> <tr> <td height="1" bgcolor="AAAAAA"></td> </tr> </table> <br> <br> <p style="font-size:6px"><br> </p> </div> </td> <td width="1" bgcolor="CCCCCC"></td> <td width="579" valign="top"> <span style="font-size:6px"><br></span> <div align="center"> <table width="549" border="0" cellpadding="0" cellspacing="0"> <tr> <td colspan="4" height="1" bgcolor="AAAAAA"></td> <td width="5" height="1" bgcolor="FFFFFF"></td> </tr> <tr> <td width="1" bgcolor="AAAAAA"></td> <td rowspan="2" colspan="2" width="542" height="27" bgcolor="F9F9F9" style="color:FFBA27;font-size:15px"> Welcome!</td> <td width="1" bgcolor="AAAAAA"></td> <td width="5" height="4" bgcolor="FFFFFF"></td> </tr> <tr> <td width="1" bgcolor="AAAAAA"></td> <td width="1" bgcolor="AAAAAA"></td> <td width="5" bgcolor="F0F0F0" height="23"></td> </tr> <tr> <td width="1" bgcolor="AAAAAA"></td> <td colspan="2" height="1" bgcolor="AAAAAA"></td> <td width="1" bgcolor="AAAAAA"></td> <td width="5" bgcolor="F0F0F0"></td> </tr> <tr> <td width="1" height="206" bgcolor="AAAAAA"></td> <td colspan="2" bgcolor="FFFFFF"><table width="542" border="0" cellpadding="17" cellspacing="0"> <tr> <td style="color:#666666;line-height:1.6em"><div align="justify"> <p><?/** * The user is already logged in, not allowed to register. */if($session->logged_in){ echo "<h1>Registered</h1>"; echo "<p>We're sorry <b>$session->username</b>, but you've already registered. " ."<a href=\"main.php\">Main</a>.</p>";} ?><h1>Register Step (3)</h1><?php $random= $_POST['random'];\\this is line 150 $user=$_POST['user']; echo $user; echo $random;?></div></td> </tr> </table></td> <td width="1" bgcolor="AAAAAA"></td> <td width="5" bgcolor="F0F0F0"></td> </tr> <tr> <td width="1" bgcolor="AAAAAA"></td> <td colspan="2" height="1" bgcolor="AAAAAA"></td> <td width="1" bgcolor="AAAAAA"></td> <td width="5" bgcolor="F0F0F0"></td> </tr> <tr> <td width="1" height="5" bgcolor="FFFFFF"></td> <td width="4" height="5" bgcolor="FFFFFF"></td> <td width="538" height="5" bgcolor="F0F0F0"></td> <td width="1" height="5" bgcolor="F0F0F0"></td> <td width="5" height="5" bgcolor="F0F0F0"></td> </tr> </table> <span style="font-size:6px"><br> </span> </div> </td> </tr> <tr> <td colspan="3" height="10" bgcolor="FFFFFF"></td> </tr> <tr> <td colspan="3" height="1" bgcolor="CCCCCC"></td> </tr> <tr> <td colspan="3" height="5" bgcolor="FFFFFF"></td> </tr> <tr> <td colspan="3" bgcolor="FFFFFF" align="right"><p>Copyright © 2006, <strong>Dobakat</strong></a>. All Rights Reserved.<br> The only official site of Tibia is <strong>www.tibia.com</strong>.<br> Tibia is a copyright of CipSoft GmbH, 2006.</p> </td> </tr></table></div></body></html>[/code]if you didn't see line 150, it is this one $random= $_POST['random']; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.