Jump to content

[SOLVED] Problems with redirecting pages.![HELP PLS]


phpRoshan

Recommended Posts

Hi ther,

Im working on a admin page,

 

what i wanted to do was when a user clicks on a submit button, admin page should veryfy which button was clicked and acroding to clicked button user should be redirected to a different page. So i did that using following codes.

 

 

  switch(isset($_POST))

  {

      case (isset($_POST['artistadmin'])):

      header("location:artist.php");

 

      case (isset($_POST['categoryadmin'])):

      header("location:categories.php");

 

      case (isset($_POST['mmfileadmin'])):

      header("location:mmediafile.php");

 

     

      default:

      $objAdmin->showAdminOption();

  }

 

It worked fine only for the first cliced button.But after reruring to the main admin page when the second button was clicked still it redirected to the same page. i dont know how to make changes for this hedder function in order to work properly.

 

Can anybody tell how to solve this prob? or any other alternative way to do the same thig?

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.