Hi, I've got a little problem, i've got a form with 2 submit butttons, i've download event Switcher [GH] but i don't know how to use it 😟
I'm very bad in php this is why i ask for help...
my 2 buttons are "inscription"(id:inscription) and "enregistrer et inscrire un autre"(id:saveAnother)
is this code correct ?
I'm very bad in php this is why i ask for help...
my 2 buttons are "inscription"(id:inscription) and "enregistrer et inscrire un autre"(id:saveAnother)
is this code correct ?
<?php $but = $form->data['event'];
switch ($but ) {
case "Inscription":
return 'event_a';
break;
case "saveAnother":
return 'event_b';
break;
default:
return 'event_d';
}
?>