Login Retreive lost passwordRegister
Search

Forum Index / General / Dislpay form again on submit

[ This topic is solved ]

  Tivaro 24 January 12 / 11:44  
Changed at 24 January 12 / 11:45
I would like to display my (DB)form again on sumbit if indicated by the user. Right now I have a checkbox but my simple idea:
<?php
$form
->checkBox('Voer nog een urendeclaratie in','morehours');

function 
saved($ID,$data){
  if(
$data['morehours']) $form->flush();
}
?>

doesn't seem to work. Do I have to create a new form to display the second time or are there more elegant solutions?

  Johan Wiegel (Admin) 24 January 12 / 12:45  
Send the page to the form again by using header location?

  Top


powered by PHP-GLOBE   © 2004 - 2012 FormHandler. All rights reserved.   -   Open source license