Ok, first off I can't set up a web server on every person's machine so that's not gonna work. And the reason I need to get this cgi script off of my host because it's simply comsuming to much bandwidth and besides it takes a long time to load because of all the data it must transfer.

Basically you have a html page with a form on it. FORM name=generatemap action=../cgi-bin/mapeditor/upload.cgi method=post target=map encType=multipart/form-data and a few fields in the form INPUT type=radio value=open name=ac etc... etc... exactly what type of input fields doesn't matter
the user clicks on the submit button
then, the data is submitted to the cgi (upload.cgi) like I mentioned before.
upload cgi then generates an html page that the viewer sees in their browser (of course)

Now I have converted the perl script into a c++ exe.... The problem is if I put the html page and the exe on my local machine instead, then when I click the submit button it asks to download the exe instead of running it.

And so that's what I need a solution to.
As for what I used to convert the perl to an exe, well that don't matter much. I can just as easily recode the program in c++. However, I did try this program: http://www.indigostar.com/perl2exe.htm

In reply to Re: Re: exe on local machine by Kevin Ar18
in thread exe on local machine by Kevin Ar18

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.