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'] != "[email protected]" ) {
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
https://forums.phpfreaks.com/topic/7766-login-problems/
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
https://forums.phpfreaks.com/topic/7766-login-problems/#findComment-28357
Share on other sites

Archived

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

×
×
  • 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.