Hi,

I'd like to seek more wisdom regarding posting of values.

I am in a radical project where i was tasked to build a UI with XUL generated from perl (Template::Declare) i have no problems with the UI but with the forms.

I can't use inserting html elements because it sometimes does not display therefor useless. I can't seem to use XMLhttpRequests... I tried to use CGI.pm but it returned the whole page... something must be wrong here somewhere. (i'll try this again next time) I am now trying to use LWP but as extensive as I've read, all of them are posting to a PHP script.

If ever I get to implement the html element, the XMLhttpRequest, the CGI, and the LWP it will just bring me back to the problem that somehow how can I capture/receive the values passed from my form to the perl script?

something similar to:
<?php header("Content-type: text/html"); while (list($key, $val) = each($_REQUEST)) { echo "$key = $val\n"; } ?>

to expand things more.. I that perl script will access the database (no problem with this) and return a value back to my form (will pose another problem of posting/returning a value).

Many thanks... Hoping that someone has an idea on what to do... I'm open in learning things.. just that.. it has to be perl, xul, and html ^^,

roiji-


In reply to POSTing values to a perl script by roiji

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.