It must suck to be human. If I was born a human (or as you), I would have killed myself.
- Edelweiss, Sagashi-Ateru 2: Prisoners of Fate

Home » Post Item » I seek the wisdom of the perlmonks

I seek the wisdom of the perlmonks

Monday, December 17, 2007

I'd like share my post on the perlmonks… if ever you have any ideas.. help my out too ^^,

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-

 It's still unapproved and I still have no reputation in the monestary.. T_T

I just hope it got approved… …and answered… 

Posted by roiji at 5:54 pm | permalink

Add a comment