For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > January 2006 > Want to get(retain) Last visited page









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Want to get(retain) Last visited page
mananvyas@gmail.com

2006-01-10, 4:00 am

Hi All,

I am developing a kind of application where i want to retain the last
visited page. My problem is, because of number of parameters are to
large, that is possible to send all the infomation passing through URL
using get method, so i am sending some of the information using post
method, so i can't do it using just getting the url.

Can anybody give me idea that how can i get the last visited page in
this case.
Again i would like to repeat that i am sending some of the information
using post method.

Thanks in advance

j0sh

2006-01-10, 4:00 am

mananvyas@gmail.com wrote:
> Hi All,
>
> I am developing a kind of application where i want to retain the last
> visited page. My problem is, because of number of parameters are to
> large, that is possible to send all the infomation passing through URL
> using get method, so i am sending some of the information using post
> method, so i can't do it using just getting the url.
>
> Can anybody give me idea that how can i get the last visited page in
> this case.
> Again i would like to repeat that i am sending some of the information
> using post method.


save $_POST array in $_SESSION

ex. $_SESSION['post']=$_POST

then you can retrieve information with a foreach if $_SESSION['post'] is
not null

--
http://josh.pixael.com
Jim Michaels

2006-01-18, 6:57 pm

$_SERVER['HTTP_REFERER'] . ($_SERVER['QUERY_STRING'])? '?' .
$_SERVER['QUERY_STRING'] : '';

<mananvyas@gmail.com> wrote in message
news:1135753791.745585.256860@g47g2000cwa.googlegroups.com...
> Hi All,
>
> I am developing a kind of application where i want to retain the last
> visited page. My problem is, because of number of parameters are to
> large, that is possible to send all the infomation passing through URL
> using get method, so i am sending some of the information using post
> method, so i can't do it using just getting the url.
>
> Can anybody give me idea that how can i get the last visited page in
> this case.
> Again i would like to repeat that i am sending some of the information
> using post method.
>
> Thanks in advance
>



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com