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
https://forums.phpfreaks.com/topic/157660-url-question-i-think/
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
https://forums.phpfreaks.com/topic/157660-url-question-i-think/#findComment-831379
Share on other sites

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.