still getting an error
Posted: Mon Aug 29, 2005 8:56 pm
I am getting a parsing error on line 7 of the following code. can anyone help me out with what might be the cause?
Code: Select all
<?php
//start a session
session_start();
//check if user is coming from a form
if ($_POST['op'] == "ds") {
if ($_POST['username'] !="admin" || $_POST['password'] !="abc123") {
$msg ="'<p><strong><span class='red'>Bad Login - Try Again</span></strong></p>"';
$show_form = "yes";
} else {
$_SESSION['valid'] = "yes";
$show_menu="yes";
} else {
if ($_SESSION['valid'] =="yes") {
$show_menu ="yes";
} else {
$show_form ="yes";
}