You're missing at least one closing brace (}) -- the one that belongs with the else if ($login=="check") { ten or so lines up from the bottom.
--- Mark Roedel | "Blessed is he who has learned to laugh Systems Programmer | at himself, for he shall never cease LeTourneau University | to be entertained." Longview, Texas, USA | -- John Powell > -----Original Message----- > From: Mark Clarkstone [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 10, 2003 10:38 AM > To: [EMAIL PROTECTED] > Subject: [PHP] HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!! can someone > tell me whats wrong here? (newbie) > > > Can anyone help me with this code I just get someting about > $end & help me fix it > > > > Thanks > > > Parse error: parse error, unexpected $end in > C:/apache/htdocs/test.php on line 73 > > > <title> Control Panel</title> > <font face=\"Tahoma\" size=\"2\"> > <? > require("cpconf.php"); > > if ($instal=="0") { > > print "<p><font size=\"2\" face=\"Tahoma\"><b>Welcome to The > Control Panel Installer<br> > <br> > </b>This will install the control Panel</font></p> > <form method=\"POST\" action=\"?action=check\"> > <font face=\"Tahoma\" size=\"2\">Please enter your site domain e.g. > freesite.cjb.com (without a www or a dot please) leave as > localhost if you are > using it as a local testing server.</font><br> > <input type=\"text\" name=\"csiteex\" size=\"20\" > value=\"localhost\"><br> > <br> > <font size=\"2\" face=\"Tahoma\">Please enter a Username > & password to access the > area<br> > Username<br> > <input type=\"text\" name=\"user\" size=\"20\"><br> > Password<br> > <input type=\"text\" name=\"pass\" size=\"20\"></font><br> > <input type=\"submit\" value=\"Submit\" name=\"B1\"></p> > </form>"; > } > else if ($action == "check") { > > if (!$csiteex) { > echo "Please enter your domain"; > } > else if (!$user) { > echo "Please enter a username"; > } > else if (!$pass) { > echo "Please enter a password"; > } > else if ($csiteex && $user && $pass) { > $data = "<? > \$l33t = \"C:/miniserve/Apache/conf/l33t.conf\"; > \$syspath = \"C:\"; > \$install = \"1\"; > \$siteex = \"$csiteex\"; > \$admin = \"$user\"; > \$adpw = \"$pass\"; > > ?>"; > $fp = fopen("cpconf.php",'w'); > $fw = fwrite($fp,$data); > fclose($fp); > } > } > else if ($install =="1") { > echo "<p><font size=\"2\" face=\"Tahoma\"><b>Welcome to The > Control Panel</b></font></p> > <form method=\"POST\" action=\"?login=check\"> > <font size=\"2\" face=\"Tahoma\">Please enter a Username > & password to access the > area<br> > Username<br> > <input type=\"text\" name=\"userlogin\" size=\"20\"><br> > Password<br> > <input type=\"text\" name=\"passlogin\" size=\"20\"></font><br> > <input type=\"submit\" value=\"Submit\" name=\"B1\"></p> > </form>"; > } > else if ($login=="check") { > > if (!$userlogin && !$passlogin) { > echo "Sorry but No Username or password was found"; > } > else if ($userlogin && $userpass == $admin && $adpw) { > include("admin.php); > } > ?> > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php