genista Posted April 18, 2006 Share Posted April 18, 2006 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 heresession_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 EndThanks,G Quote Link to comment Share on other sites More sharing options...
titangf Posted April 18, 2006 Share Posted April 18, 2006 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] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.