Serge
03-11-2003, 09:36 PM
Ok I'm having problems with a switch case I'm trying to run on a script I'm trying to program.
here is the entire script with all the html as well.
<html>
<head>
<title>Surrix Article Manager</title>
</head>
<body bgcolor="#273549">
<basefont size=2 face=arial color=white>
<br>
<br>
<br>
<br>
<br>
<center><img src="cplogo.jpg"><br>
<a href="index2.php?nav=addarticle">Add Article</a> | <a href="index2.php?nav=adduser">Add User</a></center>
<br>
<br>
<br>
<?php
switch ($nav)
{
case "addarticle":
include ("adda.htm" );
break;
case "adduser":
include ("addu.htm" );
break;
}
?>
When I click on the links it doesn't do anything when it should include adda.htm or addu.htm where i have it. I have no clue what is going wrong would someone please help.
here is the entire script with all the html as well.
<html>
<head>
<title>Surrix Article Manager</title>
</head>
<body bgcolor="#273549">
<basefont size=2 face=arial color=white>
<br>
<br>
<br>
<br>
<br>
<center><img src="cplogo.jpg"><br>
<a href="index2.php?nav=addarticle">Add Article</a> | <a href="index2.php?nav=adduser">Add User</a></center>
<br>
<br>
<br>
<?php
switch ($nav)
{
case "addarticle":
include ("adda.htm" );
break;
case "adduser":
include ("addu.htm" );
break;
}
?>
When I click on the links it doesn't do anything when it should include adda.htm or addu.htm where i have it. I have no clue what is going wrong would someone please help.