title: html and perl, returning script text instead of running
body: <p>I have been writing a html interface for displaying tables, pie charts, data etc.</p>
  
  <p>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 <em>really</em> 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.</p>
  
  <p>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.</p>
  
  <p>I am new to html and js, but this is what I have so far:</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;form action="scripts/do_processing.pl" method="get"&gt;
  &lt;table&gt;
  &lt;td&gt;Select input file: (must be fasta format)&lt;/td&gt;
  &lt;td&gt;
  &lt;input type="file" name="first_name" value="" maxlength="100" /&gt;
  &lt;/td&gt;
  &lt;/tr&gt;
  &lt;br&gt;
  &lt;tr&gt;
  &lt;tr&gt;&lt;td&gt;Binning:&lt;/td&gt;
  &lt;td&gt;
  &lt;input type="radio" name="bin_method" value="blastn" /&gt; Blastn
  &lt;input type="radio" name="bin_method" value="blastx" /&gt; Blastx
  &lt;input type="radio" name="bin_method" value="megan" /&gt; Megan
  &lt;/td&gt;
  &lt;/tr&gt;
  &lt;/table&gt;
  &lt;br&gt;&lt;br&gt;
  &lt;input  TYPE=IMAGE 
          SRC="images/go_button-green.jpg" 
          HEIGHT=100 WIDTH=auto
          ALT="Go!" BORDER=0 
          NAME="go"
          &gt;
  &lt;/td&gt;
  &lt;/tr&gt;
  &lt;/form&gt;&lt;br&gt;
  </code></pre>
  
  <p>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.</p>
  
  <p><strong>Note:</strong> The input is not relevant at the moment, as the perl script I'm currently trying to call is just a "Hello World!"</p>