You should remember where are the things that you are using:

So, are your expecting that all the users of your page are having a working Perl at their computer?

The data that is collected at the HTML page's copy that the user is filling, needs to reach your server's Perl to be processed. Or, if you are programming in JavaScript, the data could be processed at the users browser (if they admit using JavaScript)...

So, to process all the important data filled by any user, you should put some form fields in your page, and a submit button that should send them, through the WWW to your server's cgi script. This is like a .pl file but it ends with .cgi and resides in your /cgi-bin folder. You should read something about CGI programming at this site ( Tutorials).

After having the data, you might show it inside a copy of your original page but built again with your data pasted inside of it. And you just show it, you don't need to save it.

Again, you should read about CGI.

.{\('v')/}   C H E E R   U P !
 _`(___)' ___a_l_b_e_r_t_o_________
Wherever I lay my KNOPPIX disk, a new FREE LINUX nation could be established.

In reply to Re: Pass the value from perl script to html page by chanio
in thread Pass the value from perl script to html page by suntech

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.