Happy-the-monk provided the correct answer here. I'm just going to add a bit of explanation, since your use of terminology may indicate a little bit of confusion.

The code snippet that you cited would not normally be called a script. This is just an HTML page that calls a script. When someone visits your web page, his browser downloads that information and draws the page. When the user clicks on "submit", that information is sent back to your webserver and given to the program entitled "responsetest.cgi". As you have written the program, that program will need to be in the same directory as your web page. If your web server is running some version of Unix, that file must also be set as a "runnable file" (that is, the file permissions should be 755). On any web server, you will have to have the server set up to handle cgi scripts in any directory. If that's not the case and you don't know how to change it, you can usually put your script in the "cgi-bin" directory, and then access it as

<form action="/cgi-bin/responsetest.cgi" method="post">

The script responsetest.cgi will be written in perl (of course) and should use the CGI.pm module to avoid a lot of security problems. As Happy-the-monk showed, you will very easily be able to access the values put into your HTML form from within a CGI.pm-using perl script.


In reply to Re: sending values from checkboxes to another script by mpolo
in thread sending values from checkboxes to another script by nejcPirc

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.