Jump to content

URL question,, I think.


justAnoob

Recommended Posts

I have a pagination setup with an update button on each page. Lets say I have 5 pictures to view, each one with its own page... And someone updates picture #2...After the update there is a header setting to keep them at the same page with a success message...

header("location: http://www.xxxxxxxxxxxx.com/yyyyyyy.php");

 

The only problem is when they update picture #2 the URL is something like

header("location: http://www.xxxxxxxxxx.com/yyyyyyy.php?pageno2");

 

What should I put in the header setting so it keeps them at the same picture after they update????

Link to comment
Share on other sites

Lets say the page that the user can look at their pics is called    http://www.COOL.com/pics.php

 

The pagination is setup for 1 picture at a time....

 

So when they click the next button,,, the URL reads as follows    http://www.COOL.com/pics.php?pageno2

 

and so on....

 

When they do an update with picture number 2...... It takes them back to  http://www.COOL.com/pics.php

 

I would like it to keep them on pageno2.....

 

 

Later down the road,,,, If they click on the delete button,,, I will have it take them to the picture that is previous to the one deleted.... But for now,,, I'm not worried about that.

 

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.