A
Anonymous
Guest
I'm developing a site that has several PHP features. One of them allows a sender to mail an e-card to a friend. I have done a lot of input testing to be sure the user inputs are clean and safe. At each step, I give the user the opportunity to go back and revise their inputs, or to start over.
Okay, so on the first page I take their inputs, approve or edit them for security, and then send them to a preview page. Because I need to manipulate the data inputs first on the input page, I maintain state with their data by creating a session. I haven't figured out a way to send the data by POST because I test it with PHP after they click on SUBMIT. That processing often changes the data, so their inputs are no longer used.
If the user wants to return to the input page from the preview page, the browser (IE) tells them that they have to press "refresh" to resubmit the data get. That's really bad for usability. It makes me look like I messed up!
How do I pass the data between pages more smoothly?
I used <input type="button" value="Edit" onClick="history.go(-1);>, and I've also tried it with just the URL of the input page. Is there a better way to go back one page?
Thanks.
Okay, so on the first page I take their inputs, approve or edit them for security, and then send them to a preview page. Because I need to manipulate the data inputs first on the input page, I maintain state with their data by creating a session. I haven't figured out a way to send the data by POST because I test it with PHP after they click on SUBMIT. That processing often changes the data, so their inputs are no longer used.
If the user wants to return to the input page from the preview page, the browser (IE) tells them that they have to press "refresh" to resubmit the data get. That's really bad for usability. It makes me look like I messed up!
How do I pass the data between pages more smoothly?
I used <input type="button" value="Edit" onClick="history.go(-1);>, and I've also tried it with just the URL of the input page. Is there a better way to go back one page?
Thanks.