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?

 

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.