i am trying to learn... i really am 
<?php
if ($HTTP_GET_VARS["who"] == "admin")
{
echo("
<h1>here's a default page for admin</h1>
<a href='?who=admin&step=list'>list all</a><hr />
<table border='1'>
<tr>
<td>html search widget<br /><a href='?who=admin&step=list'>search</a></td>
</tr>
</table>
<hr />
<a href='?who=admin&step=add'>add</a><hr />
");
if ($HTTP_GET_VARS["step"] == "list")
{
echo("
<h1>here's a list for admin</h1>
<a href='?who=admin'>home</a><hr />
list row <a href='?who=admin&step=detail'>view</a><br />
list row <a href='?who=admin&step=detail'>view</a><br />
list row <a href='?who=admin&step=detail'>view</a><br />
list row <a href='?who=admin&step=detail'>view</a><br />
");
}
}
else
{
echo("
<h1>here's a default page for user</h1>
<a href='?who=user&step=list'>list all</a><hr />
html categories widget<br />
<a href='?who=user&step=list&filt=1'>category 1</a><br />
<a href='?who=user&step=list&filt=2'>category 2</a><br />
<a href='?who=user&step=list&filt=3'>category 3</a><hr />
<table border='1'>
<tr>
<td>html search widget<br /><a href='?who=user&step=list'>search</a></td>
</tr>
</table>
<hr />");
if ($HTTP_GET_VARS["step"] == "list")
{
echo("
<h1>here's a list for user</h1>
<a href='?who=user'>home</a><hr />
list row <a href='?who=user&step=detail'>view</a><br />
list row <a href='?who=user&step=detail'>view</a><br />
list row <a href='?who=user&step=detail'>view</a><br />
list row <a href='?who=user&step=detail'>view</a><br />
");
if ($HTTP_GET_VARS["step"] == "detail")
{
echo("
<h1>here's a detail for user</h1>
<a href='?who=user'>home</a><hr />
new item detail<hr />
");
}
}
}
?>
why is it opening up the next information on the same page? and when i click on the user view detail, it goes back a step.
does anyone understand the code, or me?!
thanks for your time everyone.
me.
<?php
if ($HTTP_GET_VARS["who"] == "admin")
{
echo("
<h1>here's a default page for admin</h1>
<a href='?who=admin&step=list'>list all</a><hr />
<table border='1'>
<tr>
<td>html search widget<br /><a href='?who=admin&step=list'>search</a></td>
</tr>
</table>
<hr />
<a href='?who=admin&step=add'>add</a><hr />
");
if ($HTTP_GET_VARS["step"] == "list")
{
echo("
<h1>here's a list for admin</h1>
<a href='?who=admin'>home</a><hr />
list row <a href='?who=admin&step=detail'>view</a><br />
list row <a href='?who=admin&step=detail'>view</a><br />
list row <a href='?who=admin&step=detail'>view</a><br />
list row <a href='?who=admin&step=detail'>view</a><br />
");
}
}
else
{
echo("
<h1>here's a default page for user</h1>
<a href='?who=user&step=list'>list all</a><hr />
html categories widget<br />
<a href='?who=user&step=list&filt=1'>category 1</a><br />
<a href='?who=user&step=list&filt=2'>category 2</a><br />
<a href='?who=user&step=list&filt=3'>category 3</a><hr />
<table border='1'>
<tr>
<td>html search widget<br /><a href='?who=user&step=list'>search</a></td>
</tr>
</table>
<hr />");
if ($HTTP_GET_VARS["step"] == "list")
{
echo("
<h1>here's a list for user</h1>
<a href='?who=user'>home</a><hr />
list row <a href='?who=user&step=detail'>view</a><br />
list row <a href='?who=user&step=detail'>view</a><br />
list row <a href='?who=user&step=detail'>view</a><br />
list row <a href='?who=user&step=detail'>view</a><br />
");
if ($HTTP_GET_VARS["step"] == "detail")
{
echo("
<h1>here's a detail for user</h1>
<a href='?who=user'>home</a><hr />
new item detail<hr />
");
}
}
}
?>
why is it opening up the next information on the same page? and when i click on the user view detail, it goes back a step.
does anyone understand the code, or me?!
thanks for your time everyone.
me.