On Jan 22, 4:36 pm, [EMAIL PROTECTED] (Gunnar Hjalmarsson) wrote: > 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
Thanks for the suggestions. $value does have a value and I am able to print it before the redirect. I have also tried print $query->redirect("mytest.cgi?ID=$value"); and I am still not getting the $value to show up. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/