"Marius Keraitis" <[EMAIL PROTECTED]> wrote:
> Hi
> I have a question:
> How to send parameters to another .pl file trough links (<a> tag)?
> I think it's made using ../another.pl?PARAMETER
> But how I get this parameter in another.pl?
Hope I understand you right.
If you have a hash of values you want to append to a URL you can
do it like this :
use CGI::Enurl; # http://Jenda.Krynicky.cz
$url = "../another.pl?" . enurl(\%hashname);
Eg.
%hashname = ( name => 'Jenda Krynicky',
mail => '[EMAIL PROTECTED]');
$url = "../another.pl?" . enurl(\%hashname);
returns
../another.pl?[EMAIL PROTECTED]&name=Jenda+Krynicky
If you only want to pass one param you may do this :
$url = "../another.pl?paramname=" . enurl($paramvalue);
You may also use URI::Escape.
Jenda
=========== [EMAIL PROTECTED] == http://Jenda.Krynicky.cz ==========
There is a reason for living. There must be. I've seen it somewhere.
It's just that in the mess on my table ... and in my brain.
I can't find it.
--- me
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]