Newbie problem
Posted: Thu Dec 30, 2004 11:49 am
hello,
I am trying to piece together my first script and I am getting an error. I think that I may have my function braces out of whack. anybody have any suggestions?
this works fine until i add
which is when something to the effect of
Parse error: parse error, unexpected $ in /home/jssilk/public_html/login/user.php on line 49
prints.
thanks for any help.
I am trying to piece together my first script and I am getting an error. I think that I may have my function braces out of whack. anybody have any suggestions?
Code: Select all
<?php
session_start();
$loggedIn = $_SESSION['loggedIn'];
$username = $_SESSION['username'];
if ( $loggedIn != true )
{
die('Verification failed! You must be logged in to view this page.');
}
?>
<p>Welcome to the page <?php echo $username ?>!</p>
<p><a href="logout.php">Logout</a></p>Code: Select all
<?php
if(file_exists("./proofs/".$username.".gif")){ ?>
<TABLE>
<TR>
<TD colspan="2" CLASS="articlehead">Please review proof and click approve/disapprove once you have made your decision. More help <a href="../help" >here</a></TD>
</TR>
<TR>
<TD><img src="<?php echo $image; ?>"></TD>
<TD><form action="./proofs/handler.php">
<input type="radio" name="approve" value="1">Approve<br>
<input type="radio" name="approve" value="0">Disapprove<br>
<textarea name="comments" cols="12">Please enter any comments here...</textarea><br>
<input type="hidden" name="username" value="<?php echo $username; ?>">
<input type="submit" value="Send notice">
</form></TD>
</TR>
</TABLE>
<?php
}
else { ?>
<TABLE>
<TR><TD>There aren't any proofs available to view at this time. Please contact us if you think this is a mistake.</TD></TR>
</TABLE>Parse error: parse error, unexpected $ in /home/jssilk/public_html/login/user.php on line 49
prints.
thanks for any help.