How to get back to a page without loosing data in fields

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Dilbert137
Forum Commoner
Posts: 57
Joined: Sat Jun 02, 2007 5:02 am
Location: Mauritius

How to get back to a page without loosing data in fields

Post by Dilbert137 »

Dear All,

My development is near to the end. Only one issue. I'm implementing paypal and i want to get back to a form without loosing data inside the form. At this moment I have a link to the page but it is as if I haven't inserted data and have to reinsert all at start. Is there a way to get back to a page without having to call the file name like Mozilla do when browsing a page?

Coding:

<input name="btnBack" type="button" id="btnBack" value="<< Modify Shipping/Payment Info" onClick="window.location.href='checkout.php?step=1';" class="box">



Thanks
Dilbert137
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Use sessions to store the information needed to prefill the fields once they've been filled by the user.
Post Reply