Hello,
I try to split-up a single form in several pages to get a wizard-like behaviour. Please see http://chronoengine.com/forums.html?cont=posts&f=2&t=12388 for background on creating multiple pages out of 1 form.
I use the code below to check which button was pressed.
Since I have a 'Previous' button on each page, this code no longer works. Can I check on id from the <INPUT type=submit id=button_2 value=Previous> tag?
If so, please provide a small code example.
Thanks you in advance.
Kind regards,
Sweder
I try to split-up a single form in several pages to get a wizard-like behaviour. Please see http://chronoengine.com/forums.html?cont=posts&f=2&t=12388 for background on creating multiple pages out of 1 form.
I use the code below to check which button was pressed.
<?php
$submit = JRequest::getVar('submit', '', 'post');
if ( $submit == 'Previous' ) {
$page--;
JRequest::setVar('page' , 'post' );
}
?>
Since I have a 'Previous' button on each page, this code no longer works. Can I check on id from the <INPUT type=submit id=button_2 value=Previous> tag?
If so, please provide a small code example.
Thanks you in advance.
Kind regards,
Sweder