Re: Headers("Location") in Perl??

2006-11-06 Thread ����ΰ
sorry, i forget print it

print $cgi->redirect('...'); 



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 




Re: Headers("Location") in Perl??

2006-11-06 Thread ???
In php header("Location: www.blah.com") will goto http://www.blah.com.
And in Perl CGI, you will use this script, please do not print any header 
information

use CGI;
my $cgi = new CGI;
$cgi-> redirect('http://www.blah.com');

-- 
I want a job about Perl, please visit my resume at
http://wanmyome.googlepages.com/resume.html
""Richard Bagshaw"" <[EMAIL PROTECTED]> 
??:[EMAIL PROTECTED]
Hi Peeps,



This may be an obvious question but I am new to perl and I need some
advice.  Basically I have written a script that makes some changes to a
database when a drop down is selected, after this is done I then want to
goto another page in my system.  In php I could use the
header("Location: www.blah.com") todo this, is there anything like that
in perl?



Thx



Richard






-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 




Re: Headers("Location") in Perl??

2006-11-04 Thread David Dorward
On Sat, Nov 04, 2006 at 11:12:51PM -, Richard Bagshaw wrote:
> This may be an obvious question but I am new to perl and I need some
> advice.  Basically I have written a script that makes some changes to a
> database when a drop down is selected, after this is done I then want to
> goto another page in my system.  In php I could use the
> header("Location: www.blah.com") todo this, is there anything like that
> in perl?

You can just print them directly (since CGI expects headers followed
by a blank line followed by message), or CGI.pm has a header method.

-- 
David Dorward  http://dorward.me.uk


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 




Headers("Location") in Perl??

2006-11-04 Thread Richard Bagshaw
Hi Peeps,

 

This may be an obvious question but I am new to perl and I need some
advice.  Basically I have written a script that makes some changes to a
database when a drop down is selected, after this is done I then want to
goto another page in my system.  In php I could use the
header("Location: www.blah.com") todo this, is there anything like that
in perl?

 

Thx

 

Richard