linkage problem
Posted: Mon Jul 01, 2002 4:23 am
my links arent working, i'm using if statements to get a link and saying if the link is equal to whatever do this etc... yet when i click on the link nothing shows up, heres the code:
i put dots in the $link meanign theres more links that are in ther but thats too much code. but shouldnt this work i dont understand nothings showing up except for the if(!$page) part thats the only part that works any time you click on a link it wont work
Code: Select all
$links = "<HR width=75% height=3>
<A HREF=main.php?id=dbpics>Home</a> -
<A HREF=main.php?id=dbpics?page=kv>King Vegeta</a> -
<A HREF=main.php?id=dbpics?page=toma>Toma</a> .....";
if(!$page){
echo "<BR><P>Welcome to the Dragonball pictures page. ";
echo "<BR><BR>$links";
}
else if($page=='kv'){
include ("dbpics\kv.php");
echo "<BR><BR>$links";
}
else if($page=='toma'){
echo "toma";
echo "$links";
}