On Jan 22, 8:51 pm, [EMAIL PROTECTED] ([EMAIL PROTECTED]) wrote: > 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.
Hi when using the full url: print $query->redirect('http://site/cgi-bin/mytest.cgi?ID='.$value); I am redirected to: http://site/cgi-bin/mytest.cgi?ID= -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/