I have been writing a html interface for displaying tables, pie charts, data etc.
The Perl script that generates the data and the tables can be called by a single command at the terminal and I want to have a button in the html that will call this. I don't really need any feedback from the Perl script once it's going, although if it could ping back a "everything went better than expected", that would be nice.
Currently however, every time I click the submit I get asked to open or save the Perl script and after a day of googling I cant fix it and would appreciate some advice.
I am new to html and js, but this is what I have so far:
<form action="scripts/do_processing.pl" method="get">
<table>
<td>Select input file: (must be fasta format)</td>
<td>
<input type="file" name="first_name" value="" maxlength="100" />
</td>
</tr>
<br>
<tr>
<tr><td>Binning:</td>
<td>
<input type="radio" name="bin_method" value="blastn" /> Blastn
<input type="radio" name="bin_method" value="blastx" /> Blastx
<input type="radio" name="bin_method" value="megan" /> Megan
</td>
</tr>
</table>
<br><br>
<input TYPE=IMAGE
SRC="images/go_button-green.jpg"
HEIGHT=100 WIDTH=auto
ALT="Go!" BORDER=0
NAME="go"
>
</td>
</tr>
</form><br>
It is only to be ran locally, I have no intentions to have it accessible to the outside world and am therefore avoiding CGI and Apache-esque solutions which I think are unnecessary. Links are all good as it tries to open the file each time.
Note: The input is not relevant at the moment, as the perl script I'm currently trying to call is just a "Hello World!"