Jump to content

[SOLVED] Cant figure this out


peranha

Recommended Posts

This is on the index.php page, and is supposed to redirect to the page depending on the action.  I know it is setting the action as the echo writes out what is in the address bar.

 

test.php?action=addcomm will echo addcomm which is the first case.

 

<?php

$action = $_GET['action'];

echo $action;

switch($action){
	case 1: 
		include('pages/addcomm.php'); 
	break;
	case 2: 
		include('pages/admin.php'); 
	break;
	case 3:
		include('pages/adminuser.php');
	break;
	case 4:
		include('pages/addcomm1.php');
	break;
	case 5:
		include('pages/adminuser1.php');
	break;
	case 6:
		include('pages/adminuser2.php');
	break;
	case 7:
		include('pages/adminuser3.php');
	break;
	case 8:
		include('pages/banipadd.php');
	break;
	case 9:
		include('pages/banipadd1.php');
	break;
	case 10:
		include('pages/banuser.php');
	break;
	case 11:
		include('pages/banuserproc.php');
	break;
	case 12:
		include('pages/citysupport.php');
	break;
	case 13:
		include('pages/countrysupport.php');
	break;
	case 14:
		include('pages/dealersupport.php');
	break;
	case 15:
		include('pages/dealersupporttable.php');
	break;
	case 16:
		include('pages/dealertablesubmit.php');
	break;
	case 17:
		include('pages/distinctip.php');
	break;
	case 18:
		include('pages/distinctip1.php');
	break;
	case 19:
		include('pages/login.php');
	break;
	case 20:
		include('pages/logout.php');
	break;
	case 21:
		include('pages/prologin.php');
	break;
	case 22:
		include('pages/statesupport.php');
	break;
}


?>

 

Any ideas will be greatly appreciated.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.