Hi guys,
I'm trying to call a function that resides in a class call Batcharray from a page call batch.php from a button, I'm at a lose, here is my the code for the button
Code: Select all
$form->add( array('name' => 'arrayclear', 'type' => 'button', 'buttontype' => 'button', 'value' => 'Clear array', 'onclick'=> "location.href='/batch.php?&action=<? echo $batch->addDatadb();?>;'" , ) );
Basically the onclick event is where im struggling