Forums

back button

byru 07 Sep, 2008
Hello

How can I make a "back" button on before send page if user want to make some correct in text he was just write in form without lose data which he write on prevorius page?
Max_admin 07 Sep, 2008
actually the form page is only one page and mail is sent on submitting it, from which page you want to get back ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
byru 07 Sep, 2008
ok, it's like that:

1) main form page - user select the option and in some part write some text ------> button submit

2) page before form send - table with all information which user write on main form page - it's only for user for check is he write everywhere good information --------> submit and form is sending

the question is that: can i make button beck on "2) page before send" - when user see some mistake he click on button back, form is goes to "1) main page form" and user can correct the form

i find something:
<input type=button value="< ZmieƄ" onClick="history.go(-1)">
and it's working but when it's go back form it's clean and user must write every thing one more time

and one more thing, on "1) main form page" i click on submit he goes to "2) page before from send" but form is sending - something is wrong like the name in menu "on submit before send" so it shuldn't send form on email on pae "2)"
Max_admin 07 Sep, 2008
how did you create the page before send ?? how do you show the user his data ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
byru 07 Sep, 2008
make a table with all position like in "1) main form page"", in cell i use link to variables like that <?php echo $_POST['variable'] ?>. USer can see is that what he write is correct.
Max_admin 08 Sep, 2008
good, now the 2nd page has a submit button ? how do you keep data inside it ? hidden fields ? also, does the 2nd page is a complete new form or just some onsubmit code ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.