Re: losing variable in CGI.pm redirect

2008-01-24 Thread [EMAIL PROTECTED]
On Jan 23, 9:14 am, [EMAIL PROTECTED] (Tom Phoenix) wrote: > On Jan 22, 2008 8:51 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > print $query->redirect("mytest.cgi?ID=$value"); > > and I am still not getting the $value to show up. > > Does the program here work for you when you run it from

Re: losing variable in CGI.pm redirect

2008-01-23 Thread Rob Dixon
[EMAIL PROTECTED] wrote: 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= Change your code to read $value = 'emptyID' unless $value; print $query->redirect('http://site/cgi-bin/mytest.cg

Re: losing variable in CGI.pm redirect

2008-01-23 Thread [EMAIL PROTECTED]
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

Re: losing variable in CGI.pm redirect

2008-01-23 Thread Tom Phoenix
On Jan 22, 2008 8:51 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > print $query->redirect("mytest.cgi?ID=$value"); > and I am still not getting the $value to show up. Does the program here work for you when you run it from the command line? In what important way does your program differ from

Re: losing variable in CGI.pm redirect

2008-01-23 Thread Gunnar Hjalmarsson
[EMAIL PROTECTED] wrote: 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. Then show us a (short but) complete script, if you n

Re: losing variable in CGI.pm redirect

2008-01-23 Thread [EMAIL PROTECTED]
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

Re: losing variable in CGI.pm redirect

2008-01-23 Thread Ron Bergin
On Jan 22, 1:31 pm, [EMAIL PROTECTED] ([EMAIL PROTECTED]) wrote: > Hi, > Hopefully this appropriate question for this group. 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 e

Re: losing variable in CGI.pm redirect

2008-01-22 Thread Gunnar Hjalmarsson
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

Re: losing variable in CGI.pm redirect

2008-01-22 Thread Gunnar Hjalmarsson
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 usin

Re: losing variable in CGI.pm redirect

2008-01-22 Thread yitzle
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"); On Jan 22, 2008 4:31 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi, > Hopefully this appropriate question for this group. I am