Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

How to save form data when returning from submit

  • No replies
  • 2 have this problem
  • 1 view
more options

I have two forms on page (one to save data and another to preview how form will be formatted). When I click preview button, everything is OK until I return from the preview, the the data on the form to save data is gone. How do I prevent that? Note IE had similar problem, but I got around it by saving the data in document.save (added it to document object) then in onload script refreshed the value of the form from document.save, Any suggestions? If onload always gets executed, I could try saving it a cookie. Willing to send entire PHP the generated the HTML code (or tell you how to look at it).

I have two forms on page (one to save data and another to preview how form will be formatted). When I click preview button, everything is OK until I return from the preview, the the data on the form to save data is gone. How do I prevent that? Note IE had similar problem, but I got around it by saving the data in document.save (added it to document object) then in onload script refreshed the value of the form from document.save, Any suggestions? If onload always gets executed, I could try saving it a cookie. Willing to send entire PHP the generated the HTML code (or tell you how to look at it).