I have a form to submit name of exam and mark range to generate a PDF with name of student, mark and rank. The form values for posted to another script which is used to generate a PDF
using mPDF
. Since there are many records it is taking sometime to generate PDF
.
The form calling the script is as below:
<form class="form-horizontal form-validation" role="form" method="POST" action="generatePDF.php">
<input type="text" name="examid" required />
<input type="text" name="markmin" requried />
<input type="text" name="markmax" required />
<input type="submit" name="submit" value="Submit" />
</form>
I want to know if I can display a loading image while the script is running, called from the POST.