PHP save a page then redirect to previous page(ajax)

Posted by Shiro on Stack Overflow See other posts from Stack Overflow or by Shiro
Published on 2010-04-28T09:50:32Z Indexed on 2010/04/28 10:13 UTC
Read the original article Hit count: 222

Filed under:
|
|

Dear all,

I would like to ask for how to redirect to previous page (ajax paging).

Example, Let's say currently I am in page 5, then I click on one record, after I edit it, I would like to go back to that page 5 not page 1.

The problem is my paging is using ajax,

http://domain/photo/#5

I try to use $_SERVER[http_referer], but I only get http://domain/photo , I not able to get # and the value.

What is the best way to redirect back to the previous paging. My last choice is using $_SESSION. Hope I can get better answer here.

Thx.

© Stack Overflow or respective owner

Related posts about php

Related posts about AJAX