Page 1 of 1

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

Posted: Wed Jun 27, 2007 6:55 am
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

Posted: Wed Jun 27, 2007 6:59 am
by feyd
Use sessions to store the information needed to prefill the fields once they've been filled by the user.