PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » HTML » HTML_QuickForm_Controller » Bug #2323

destroying container: problem with the back button

Details

Submitted2004-09-13 21:26 UTC
Fromignatius dot reilly at free dot fr
Assignedavb
StatusClosed
PackageHTML_QuickForm_Controller
PHP Version4.3.8
OSirrelevant
Roadmaps(Not assigned)

Comments

[2004-09-13 21:26 UTC] ignatius dot reilly at free dot fr

Description:
------------
For some reason I must clear the QFC container at the end of a successful processing.

This causes trouble when the user hits the back button after completing the multipage form (an action that usually has no logic, but which can happen frequently)

Reproduce code:
---------------
http://auderghem-analytica.com/download/qfc_bug.txt

Expected result:
----------------
After the user completes the form and hits the back button, the page called is:

http://localhost/wizard.php?_qf_page2_display=true

which shows an error message (because the container has been cleared, the variables
$GLOBALS['container']['values']['page1']['first_name'], etc. do not exist any more)

Actual result:
--------------
I would have expected - in the case of a modal form- that such a call be redirected to the page1 display form:

http://localhost/wizard.php?_qf_page1_display=true

because the container does not contain a ['valid']['page1'] = 1, so it should not show the page 2.