[ 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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'
> 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
>
>>>>>>
> "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. [.
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
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
> 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
> "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
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]
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
>
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]
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
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
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
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
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&
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
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
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
33 matches
Mail list logo