roiji has asked for the wisdom of the Perl Monks concerning the following question:
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-
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: POSTing values to a perl script
by moritz (Cardinal) on Dec 17, 2007 at 10:01 UTC | |
|
Re: POSTing values to a perl script
by olus (Curate) on Dec 17, 2007 at 12:31 UTC | |
|
Re: POSTing values to a perl script
by Gangabass (Vicar) on Dec 17, 2007 at 09:59 UTC | |
by roiji (Initiate) on Dec 21, 2007 at 06:40 UTC | |
|
Re: POSTing values to a perl script
by roiji (Initiate) on Jan 03, 2008 at 05:43 UTC |