This is the form.php file and i would like to put export button file to another php file. I am still rocky for php language.
form php
<form action="<?php echo url_for("attendance/viewAttendanceRecord"); ?>" id="reportForm" method="post" name="frmAttendanceReport">
<fieldset>
<ol>
<?php
if ($form->hasErrors()) {
echo $form['employeeName']->renderError();
}
?>
<?php echo $form->render(); ?>
<?php echo $form->renderHiddenFields(); ?>
<li class="required">
<em>*</em> <?php echo __(CommonMessages::REQUIRED_FIELD); ?>
</li>
</ol>
<p class="formbuttons">
<input type="button" class="" id="btExport" onclick='myfunction()' value="<?php echo __('Export') ?>"/>
I want to use export function in this action.php file
action.php
if($post['export'] == '1')
{
//statement
}