Forum Moderators: coopster

Message Too Old, No Replies

Php Form Data Caching

         

harchew

2:46 pm on Aug 10, 2008 (gmt 0)

10+ Year Member



I have a signup form with more than 15 input fields. After submitting the form, it will send to the second page for confirmation. In the confirmation page will like to put a back button to redirect back to the previous page. However when I click on the back button all my input values are gone. Understand that I can use session to store the values and echo it in the text fields. But I have more than 15 fields in the form which is very time-consuming. So is there any method like url caching, header expiry or better way to store the user value?

jatar_k

1:43 am on Aug 11, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



session is definitely the way to go

>> But I have more than 15 fields in the form which is very time-consuming

hehe, I've done forms with hundreds of fields, 15 might take a few minutes and really, you only need to do it once :)