I have a multipage form with the following logic
page 1 ==>takes name, address, etc as registration information
on submit ==> renders page 2
page 2 ==> presents two buttons Login & Create (both buttons have name=choice and values of "Login" and "Create")
on loginornew
event switcher :
On fromloginbutton ==> Event Loop (login)
On newaccountbutton ==> Event Loop (newaccount)
the form events
On login ==> has multipage and render html(page 3)
On newaccount==> has multipage and redener html(page 4)
the path of page1==>page2==>page 3 works fine
but page 1==>page 2 ==>page 4 does not work. I added the print_r statement above to insure that the switch was returning the right event name and it does, but page 4 never renders. Moreover, if I change the On newaccount form event to render something other than page 4, nothing renders. all I have is the output from the print_r statement.
page 1 ==>takes name, address, etc as registration information
on submit ==> renders page 2
page 2 ==> presents two buttons Login & Create (both buttons have name=choice and values of "Login" and "Create")
on loginornew
event switcher :
<?php
switch ($form->data['choice']){
case "Login":
return "fromloginbutton";
break;
case "Create":
print_r($form->data);
return "newaccountbutton";
break;
}?>
On fromloginbutton ==> Event Loop (login)
On newaccountbutton ==> Event Loop (newaccount)
the form events
On login ==> has multipage and render html(page 3)
On newaccount==> has multipage and redener html(page 4)
the path of page1==>page2==>page 3 works fine
but page 1==>page 2 ==>page 4 does not work. I added the print_r statement above to insure that the switch was returning the right event name and it does, but page 4 never renders. Moreover, if I change the On newaccount form event to render something other than page 4, nothing renders. all I have is the output from the print_r statement.