Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7015527
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T22:39:49+00:00 2026-05-27T22:39:49+00:00

I have been writing a html interface for displaying tables, pie charts, data etc.

  • 0

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!”

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T22:39:50+00:00Added an answer on May 27, 2026 at 10:39 pm

    For what you are doing, you need to use a web server unfortunately.

    In your case, when you open the HTML file locally, when you click on the form, your browser looks at the action and goes to that “address” based on where your web page is, since you are local, your webpage is a file:// url, so it basically goes to your perl file (which is what you want) except that the browser itself simply requests the file from your filesystem and does not know what to do with it, the filesystem DOES NOT run your perl script, it simply serves the file. So it’s only posible response is to offer you to download it.

    In the context of a web service, when you tell the server “go to this perl file” and assuming the web server is correctly configured, the web server notices that the .pl is a special file and it has to run it, so it does, and then grabs its output and sends it to your browser. Which is what you want to do.

    Hope this helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been writing DLL on C++, that will be use in C#. DLL
I have been experimenting with writing applications that use a local SQL Database to
Hey guys, I have a problem with a code that I've been writing. I
Hello I have always been thinking which is the best way of writing html
I have been writing C++ Console/CMD-line applications for about a year now and would
I have been writing unit tests using NUnit and Moq with my Silverlight code
I have been writing Python code for only a couple of weeks, so I'm
I have been writing web applications for quite sometime in PHP with MySQL. I
I have been writing Common Lisp macros, so Scheme's R5Rs macros are a bit
I have been writing articles on the wordpress.com blog , now I am looking

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.