What I am trying to do: Get urls like index.php?action=login
Well as you can see from the link above you will see a login box. Thats not supposed to be there. Infact besides the url/title bar, nothing else should be there.
<?
include 'login.php';
switch ($_REQUEST['action'])
{
case 'login':
print "Hello and screw you.<br>";
break;
}
?>
I plan on adding more actions in the future. So how can I stop the login box from being printed on index.php and get rid of the screw you thing on ?action=login?
Question
Prosidius
Blog I am making: http://adamb10.com/ub
What I am trying to do: Get urls like index.php?action=login
Well as you can see from the link above you will see a login box. Thats not supposed to be there. Infact besides the url/title bar, nothing else should be there.
http://www.adamb10.elixant.com/ub/index.php?action=login
Besides the screw you part, it works fine.
Time for the code I have. Index.php:
Login.php:
cases.php:
I plan on adding more actions in the future. So how can I stop the login box from being printed on index.php and get rid of the screw you thing on ?action=login?
Thanx!
Link to comment
Share on other sites
2 answers to this question
Recommended Posts