Back button history.go()

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
vikasphp
Forum Newbie
Posts: 8
Joined: Mon Feb 16, 2009 2:40 am

Back button history.go()

Post by vikasphp »

hiiii...friends..

i have a post a job page for my website.where job poster can post jobs and then if they want
to add advanced criteria then can add after submitting the current page.and go to the next page called advanced_criteria.php page . and after filling that page they go to the final submision page... ie.. postajob_final.php

i have a back button on the post a job_final .job.. i want that if any user go through two pages and click on the back button he go to the previous page . where alll the data filled by him will be displayed

i used history.go(-1) but not working in ie giving page is expired

please help ..
thanks
User avatar
LanceEh
Forum Commoner
Posts: 46
Joined: Tue Feb 17, 2009 11:53 am
Location: Florida

Re: Back button history.go()

Post by LanceEh »

I'm rusty at this, but what I would do is - Every PHP page is rendered every time a new one is open, (so data is not saved). Me personally, I would make the back button a submit button and send any data you have on that page back to the one you are going back to (using POST). That's just what I would do.

Lance
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: Back button history.go()

Post by pickle »

Welcome to the forums.

This isn't general discussion. Are you looking for a client-side solution (in which case I'll move this to Client-Side), or a server-side solution (in which case I'll move this to PHP Code)?
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
wpsd2006
Forum Commoner
Posts: 66
Joined: Wed Jan 07, 2009 12:43 am

Re: Back button history.go()

Post by wpsd2006 »

$_SESSION is your answer and best friend
vmmene
Forum Newbie
Posts: 8
Joined: Mon Feb 09, 2009 3:26 am

Re: Back button history.go()

Post by vmmene »

Store all the values filled by the user into session.
mintedjo
Forum Contributor
Posts: 153
Joined: Wed Nov 19, 2008 6:23 am

Re: Back button history.go()

Post by mintedjo »

For your reference - history.back() takes you back one page

It will still be expired though :-)
Post Reply