Jump to content


Login Problems

  • Please log in to reply
1 reply to this topic

#1 genista

  • Members
  • PipPipPip
  • Advanced Member
  • 149 posts

Posted 18 April 2006 - 08:06 PM

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:

# starting the session here
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 "

<title>Signup Form</title>

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

# Code End



#2 titangf

  • Members
  • PipPipPip
  • Advanced Member
  • 58 posts
  • LocationColorado, USA

Posted 18 April 2006 - 09:35 PM

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)
$tom = 1;
if ($tom = 0 ) {
Print "There is no Tom."
Print"Hello Tom."

[!--coloro:#3366FF--][span style="color:#3366FF"][!--/coloro--][a href="http://www.csszengarden.com/" target="_blank"]css zen garden - beautiful design with the programmer in mind[/a][!--colorc--][/span][!--/colorc--]

[!--coloro:#3366FF--][span style="color:#3366FF"][!--/coloro--]Time is the invention of man to gauge what his achievements have been before he fades to dust.[!--colorc--][/span][!--/colorc--]

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users