Jump to content

Archived

This topic is now archived and is closed to further replies.

genista

Login Problems

Recommended Posts

Hi guys,

So close! You will find below the top of my join_form.php, as per the tutorial. The problem I have is I get the following error: Parse error: parse error, unexpected T_STRING in blah/blah on line 27. Line 27 is highlighted below in bold. Register.php is ion the same directory as the join form:

#Code Start:

<?php
# starting the session here
session_start();
if ($_SESSION['email_address'] != "youremail@here.com" ) {
echo "<b>You do not have the appropriate permissions to enter.</b><br><br><br>";

# this prevents a user from typing or pasting a URL string
# into their browser to get to this page. If the $first_name
# variable is empty, then they log in like everyone else.
if ( empty( $first_name ) ) {
print "Please login below!";
include 'login_form.html';
}
} else { print "

<html>
<head>
<title>Signup Form</title>
</head>
<body>

[b]<form id="form1" name="userform" method="post" action="/register.php">[/b]

# Code End


Thanks,

G

Share this post


Link to post
Share on other sites
I can see one problem...

Where is your ending code for PHP? You've opened the PHP coding bracet and your Print command but you havn't closed it off. You need to close those two off in order for this to work.

... I think that's what's giving you your problem.

These are the ways you should be closing your tags (another example, hehe)
[code]
<?php
$tom = 1;
if ($tom = 0 ) {
Print "There is no Tom."
}else{
Print"Hello Tom."
}
?>[/code]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.