Re: how to pass a string variable via URL redirection

2004-08-21 Thread Gunnar Hjalmarsson
[ Please do not top-post! ] Xiangli Zhang wrote: Gunnar Hjalmarsson wrote: Xiangli Zhang wrote: I am trying to redirect from cgi1(with one string variable say $str with value from its calling parent html form) to cgi2, I know I can use redirect function of CGI model to implement redirection. But i

Fwd: Re: how to pass a string variable via URL redirection

2004-08-21 Thread Xiangli Zhang
I model to implement redirection. But i don't know how to pass $str to cgi2 from cgi1. If you print a "Location" header (with or without CGI.pm's redirect() function), you can pass the string as a query string. But if cgi2 is another Perl program, using the require() functio

Re: how to pass a string variable via URL redirection

2004-08-21 Thread Gunnar Hjalmarsson
Xiangli Zhang wrote: I am trying to redirect from cgi1(with one string variable say $str with value from its calling parent html form) to cgi2, I know I can use redirect function of CGI model to implement redirection. But i don't know how to pass $str to cgi2 from cgi1. If you print a &quo

how to pass a string variable via URL redirection

2004-08-20 Thread Xiangli Zhang
I am trying to redirect from cgi1(with one string variable say $str with value from its calling parent html form) to cgi2, I know I can use redirect function of CGI model to implement redirection. But i don't know how to pass $str to cgi2 from cgi1. Can anybody help me the question? tha

RE: CGI Redirection

2003-11-26 Thread Charles K. Clarkson
Ash Singh <[EMAIL PROTECTED]> wrote: : print $query->redirect('http://www.google.com '); : Thanks a lot for your assistance, I need to redirect : and the browser automatically go to that location, : without any user intervention. Is there any way to : do this. It depends upon your definiti

CGI Redirection

2003-11-26 Thread Ash Singh
print $query->redirect('http://www.google.com ');   Thanks a lot for your assistance, I need to redirect and the browser automatically go to that location, without any user intervention.  Is there any way to do this.     Developer eMessageX.com Tel: +27 (0)1

Re: Help (or redirection) w/ Installation of Storable-2.05

2003-01-26 Thread Wiggins d'Anconia
Ed Sickafus wrote: Didn't find a list at CPAN for installing modules. Please point me if this query is out of place. You might have better luck on the [EMAIL PROTECTED] list, despite its name, advanced topics are discussed as well. I know there are several of us on both lists, but some of th

Help (or redirection) w/ Installation of Storable-2.05

2003-01-26 Thread Ed Sickafus
Didn't find a list at CPAN for installing modules. Please point me if this query is out of place. Since loading MLDBM-2.01, non-root, on an Apache Cobalt Linux release 5.0 (Pacifica) Kernel 2.2.16C27_III on an i586 running Perl 5.005_03 a few weeks ago, I've experi

Re: Redirection

2001-11-21 Thread Jan-Willem Haaring
Hi, You can redirect the user to a page by simply using: print "Location: http://www.internic.com\n\n";; This should be the first line to print to your 'webpage'. good luck! - Jan-Willem On Wed, 21 Nov 2001, Lilian Alvarenga Caravela Godoy wrote: > Another question: how can I redirect a Per

Redirection

2001-11-21 Thread Lilian Alvarenga Caravela Godoy
Another question: how can I redirect a Perl script to another page? For example: I submit a for to a page called "receive.pl". In "receive.pl" I process the given information the way I want and then I send the user to a place like http://www.internic.com Does anyone knows how can I do that? Th

Re: Browser Redirection

2001-10-13 Thread _brian_d_foy
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Brett W. McCoy) wrote: > On Fri, 12 Oct 2001, Carl Franks wrote: > > if (condition) { > > print "Location:page.html\n\n"; > > } else { > > print "Content-type: text/html\n\n"; > > print "...html..."; > > } > > } > BTW, for a Location hea

Re: Browser Redirection

2001-10-12 Thread Carl Franks
I know, I just cut the code right back for clarity before posting it (maybe silly thing to do?) Thanks carl > if (condition) { > print "Location:page.html\n\n"; > } else { > print "Content-type: text/html\n\n"; > print "...html..."; > } > } BTW, for a Location header, you should an absolu

Re: Browser Redirection

2001-10-12 Thread Brett W. McCoy
On Fri, 12 Oct 2001, Carl Franks wrote: > if (condition) { > print "Location:page.html\n\n"; > } else { > print "Content-type: text/html\n\n"; > print "...html..."; > } > } BTW, for a Location header, you should an absolute URL and not a relative URL, even if it's on the same server as the

Re: Browser Redirection

2001-10-12 Thread Carl Franks
Thanks everyone who replied, What I was doing was quite simple, and I know what was going wrong. I WAS using... print "Content-type: text/html\n\n"; if (condition) { print "Location:page.html\n\n"; } else { print "...html..."; } } Whereas I SHOULD have used... if (condition) { print "Loca

RE: browser redirection

2001-10-11 Thread Denis Beaulieu
to do so I use CGI.pm module, $query = new CGI; ... don't insert header before the redirection!!! In such a case it don't work. $query->redirect("THE URL"); that is't and is work fine. Denis -Original Message- From: Grierson, Garry (UK07) [mailto:[EMAI

browser redirection

2001-10-11 Thread Grierson, Garry (UK07)
I seem to have got a little muddled yesterday, sorry. What I think you want is to be able to declare the "Content-type:text/html\n\n"; HTTP header type, so you can print some HTML etc. Then be able to automatically link to different pages (or print) based on variable values, in this case you can'

Re: Browser Redirection

2001-10-10 Thread Michael Kelly
> From: [EMAIL PROTECTED] (Randal L. Schwartz) > Organization: Stonehenge Consulting Services; Portland, Oregon, USA > Date: 10 Oct 2001 15:32:01 -0700 > To: [EMAIL PROTECTED], [EMAIL PROTECTED] (Michael Kelly) > Subject: Re: Browser Redirection > >>>>>>

Re: Browser Redirection

2001-10-10 Thread Randal L. Schwartz
> "Michael" == Michael Kelly <[EMAIL PROTECTED]> writes: Carl> print "Content-type:text/html\n\n"; >> >> needs a space to be compliant. "Content-type: text/html" Michael> Not exactly. Carl is already printing the content-type, Michael> complete with two newlines, which ends the headers. [.

Re: Browser Redirection

2001-10-10 Thread _brian_d_foy
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Brett W. McCoy) wrote: > On Wed, 10 Oct 2001, Michael Kelly wrote: > > > print "Content-type: text/html\n"; > > print "Location: http://www.mysite.com/page.html\n\n";; > This is incorrect also, because the "Location: ...\n\n" is an http heade

Re: Browser Redirection

2001-10-10 Thread Brett W. McCoy
On Wed, 10 Oct 2001, Michael Kelly wrote: > print "Content-type: text/html\n"; > print "Location: http://www.mysite.com/page.html\n\n";; This is incorrect also, because the "Location: ...\n\n" is an http header and should not be used after a Content-type header is sent to the browser. It should

Re: Browser Redirection

2001-10-10 Thread Michael Kelly
> From: [EMAIL PROTECTED] (Randal L. Schwartz) > Organization: Stonehenge Consulting Services; Portland, Oregon, USA > Date: 10 Oct 2001 09:06:34 -0700 > To: [EMAIL PROTECTED] > Subject: Re: Browser Redirection > >>>>>> "Carl" == Carl Franks <[EM

Re: Browser Redirection

2001-10-10 Thread Randal L. Schwartz
> "Carl" == Carl Franks <[EMAIL PROTECTED]> writes: Carl> Hi Carl> I'm having trouble using perl to redirect a browser to another page. Carl> If the script has the line Carl> print "Content-type:text/html\n\n"; needs a space to be compliant. "Content-type: text/html" Carl> print "Location

Browser Redirection

2001-10-10 Thread Grierson, Garry (UK07)
Oops the URL should be: http:[EMAIL PROTECTED]/ This will let you change to one or more URL's after you have issued a print "Content-type:text/html\n\n"; command. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

FW: Browser Redirection

2001-10-10 Thread Grierson, Garry (UK07)
Oops the URL should be: http:[EMAIL PROTECTED]/ > -Original Message- > From: Grierson, Garry (UK07) > Sent: Wednesday, October 10, 2001 12:49 PM > To: '[EMAIL PROTECTED]' > Cc: '[EMAIL PROTECTED]' > Subject: Browser Redirection >

Browser Redirection

2001-10-10 Thread Grierson, Garry (UK07)
This is the same answer as my last post!! Go to http:[EMAIL PROTECTED]/msg02580.html and look at the reply RE: Sending someone to a new location..., Grierson, Garry (UK07) -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: browser redirection

2001-10-10 Thread Jan-Willem Haaring
When you use print "Location: http://www.mysite.com/page.html\n\n";; to redirect you should never print "Content-type: text/html\n\n"; before it. When printing "Content-type: text/html\n\n" you tell the receiving browser that anything after that line is text/html. The line "Location http://www.m

browser redirection

2001-10-10 Thread Carl Franks
Hi I'm having trouble using perl to redirect a browser to another page. the following script works: #!/usr/bin/perl print "Location:http://www.mysite.com/page.html\n\n";; but if the script has the line print "Content-type:text/html\n\n"; in it first, the redirect doesn't work. I want to use it

browser redirection

2001-10-10 Thread Carl Franks
Hi I'm having trouble using perl to redirect a browser to another page. the following script works: #!/usr/bin/perl print "Location:http://www.mysite.com/page.html\n\n";; but if the script has the line print "Content-type:text/html\n\n"; in it first, the redirect doesn't work. I want to use it

Browser Redirection

2001-10-10 Thread Carl Franks
Hi I'm having trouble using perl to redirect a browser to another page. If the script has the line print "Content-type:text/html\n\n"; in it first, the redirect doesn't work. e.g. print "Location:http://www.mysite.com/page.html\n\n";; I want to use it in a long script which will either redirect

Re: redirection with perl

2001-09-26 Thread louie miranda
Message - From: "Wagner" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, September 27, 2001 2:56 AM Subject: redirection with perl > Hi, > > I want to do a redirection based on a variable > > for example: > > if ($name eq 'invader&

Re: redirection with perl

2001-09-26 Thread Brett W. McCoy
On Wed, 26 Sep 2001, Wagner wrote: > I want to do a redirection based on a variable > > for example: > > if ($name eq 'invader') { > > redirection to some URL ; > > } > > What do i have to put in the middle line to do the redirection... If you

Re: redirection with perl

2001-09-26 Thread Lisa Nyman
ct('http://www.foo.com/invader'); } On Wed, 26 Sep 2001, Wagner wrote: > Hi, > > I want to do a redirection based on a variable > > for example: > > if ($name eq 'invader') { > > redirection to some URL ; > > } Lisa Wolfisch Nyman

redirection with perl

2001-09-26 Thread Wagner
Hi, I want to do a redirection based on a variable for example: if ($name eq 'invader') { redirection to some URL ; } What do i have to put in the middle line to do the redirection... In javascript i would put: location.href=url but in perl i don't know what to pu