I think your problem is the endif at the last line, if's in php work
this way.

If (<expresion>) {
        <expresion>
        <expresion>
        <expresion>
}

Iván

-----Mensaje original-----
De: Nintendoodle [mailto:[EMAIL PROTECTED]] 
Enviado el: Lunes, 16 de Julio de 2001 07:18 p.m.
Para: [EMAIL PROTECTED]
Asunto: [PHP-WIN] I am going out of my mind, can anyone help


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>


--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to