Just some small errors in placements of your php open and close tags you have some php code outside of the tags, and some HTML tags in wrong spots.: change the end to this and it should work for you.
<tr><td colspan="2" align="left">
<input type="checkbox" name="remember" <?
if( $form->value("remember") != "" )
{
echo "checked";
}
?> >
<font size="2">Remember me next time </font>
<input type="hidden" name="sublogin" value="1">
<input type="submit" value="Login"></td></tr>
<!--- <tr><td colspan="2" align="left"><font size="2">[<a href="forgotpass.php">Forgot Password?</a>]</font></td><td align="right"></td></tr> --->
<tr><td colspan="2" align="left">Not registered? <a href="register.php">Sign-Up!</a></td></tr>
</table>
</form>
<? } ?>
</div>
<!-- end of left column -->
<!-- right column -->
<div id="rh-col">
<h4 align="center">Right Column</h4>
<p align="center">More links?
Advertisements</p>
</div>
<!-- end of right column -->
</body>
</html>
GliderPilot
Junior Poster in Training
86 posts since Sep 2006
Reputation Points: 8
Solved Threads: 4
It looks like the GUEST_NAME is supposed to be a variable... if so you need a $ in front of it.
$this->username = $_SESSION['username'] = $GUEST_NAME;
GliderPilot
Junior Poster in Training
86 posts since Sep 2006
Reputation Points: 8
Solved Threads: 4
Ahh thank you. That fixed it up. But now I have another error. Its in my file that creates a PHP session.
It gives me this error:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in session.php on line 59
And line 59 looks like this:
$this->username = $_SESSION['username'] = GUEST_NAME;
Any suggestions? Thanks.
The line numbers given for PHP parse errors are usually incorrect. Most likely the parse error occurred on the line just before the one given (line 58).
The code:
$this->username = $_SESSION['username'] = GUEST_NAME;
looks ok. GUEST_NAME should be a constant. The only error that could be thrown by that line is if GUEST_NAME is not defined. It would be an E_NOTICE level error though which means its a precaution.
digital-ether
Nearly a Posting Virtuoso
1,293 posts since Sep 2005
Reputation Points: 461
Solved Threads: 101
Same thing as before all your GUEST_NAME variables do not have a $ in front of them.
GliderPilot
Junior Poster in Training
86 posts since Sep 2006
Reputation Points: 8
Solved Threads: 4
My bad for repostng my suggestion I miss read the page. I saw the quote and though BareFoot posted that it had fixed it but she got same error elsewhere. Hence why I resuggested what I had mentioned earlier.
P.S. No need for the personal attacks I was just trying to help out. ;) I did mention that I THINK it is a variable if it is suppose to be a constant than I am odviosuly wrong. I agree that the error may be just before the quoted line.
GliderPilot
Junior Poster in Training
86 posts since Sep 2006
Reputation Points: 8
Solved Threads: 4
Try replacing your opening PHP tags with <?php instead of <?.
PHP short open tags are only available is specifically enabled in the configuration.
edit:
same for the <?= notation.
digital-ether
Nearly a Posting Virtuoso
1,293 posts since Sep 2005
Reputation Points: 461
Solved Threads: 101