Gunnar Hjalmarsson wrote:
yitzle wrote:
[EMAIL PROTECTED] wrote:
I am trying to redirect to a website:
print $query->redirect(-location=>test.cgi?ID=$value", -
method=>'GET');
Unfortunately the $value never gets passed and I end up with test.cgi?
ID= .
Why do you only have one double-quote on that line?
Are you using strict and warnings?
print $query->redirect(-location=> "test.cgi?ID=$value", -method=>"GET");
And does $value contain a value?
Btw, the -method parameter makes no sense here, since this is not a form
submission. This should be enough:
print $query->redirect("mytest.pl?ID=$value");
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/