Ok, I am working on the from page of my content management system, but I keep getting 
a parse error on my script around line 30.

I am new to this, so please dont mock me.

If anyone could point out what the hell I've done wrong, I would really apprieciate it.

______________________________________

<html>
<head><title>Nintendoodle Editors' Eden</title></head>
<body>
<?php
if ( isset($name)) :
?>
<h2>Write an article?</h2>
<p><a href="newseditor.php?name=<?php echo(urlencode($name)); ?>">News Editor</a></p>
<p><a href="previewseditor.php?name=<?php echo(urlencode($name)); ?>">Previews 
Editor</a></p>
<p><a href="reviewseditor.php?name=<?php echo(urlencode($name)); ?>">Reviews 
Editor</a></p>
<p><a href="featureseditor.php?name=<?php echo(urlencode($name)); ?>">Features 
Editor</a></p>
<p><a href="cheatseditor.php?name=<?php echo(urlencode($name)); ?>">Cheats 
Editor</a></p>

<h2>Something to discuss?</h2>
<p><a href="http://www.nintendoodle.com/phpBB/viewforum.php?forum=3&5";>Staff 
Forums</a></p>
<p><a href="http://www.nintendoodle.com/phpBB/viewforum.php?forum=4&2";>VGLN 
Forums</a></p>

<h2>Chat with the editors</h2>
<p><a href="http://www.nintendoodle.com/java/chatroom>Editors Chatroom</a></p>
<?php
else :
?>
<FORM ACTION=<?php echo($PHP_SELF); ?> METHOD=GET>
Select name: 
<SELECT NAME="name">
<OPTION SELECTED VALUE>You are?
<?php
include("security.inc");
?>
<?php
$names = mysql_query(SELECT author FROM authors);
while ($row = mysql_fetch_array($names)) {
$name = $row["author"];
echo("<OPTION VALUE='$name'>$name\n");
}
?>
</SELECT>
<p>
<br>
Enter password: 
<INPUT TYPE=TEXT NAME="password"
<INPUT TYPE=SUBMIT VALUE="Go">
</FORM>
<?php 
endif;
?>
</body>

Reply via email to