Jump to content

Login Problems


genista

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
Link to comment
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]
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.