×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

redirect to another page

redirect to another page

redirect to another page

(OP)
hi list..

we use 'Response.redirect' method in asp to go to another page without summit any form/button..

but how to do this in perl.. what i want to do is, after process everything (in page.pl) i want to go back to my asp page without using any buttons. How to do this..

Please help..

Thanks a lot,
parames.s

RE: redirect to another page

If the page is created via a piece of CGI, then simply reproduce the page.  If not, you could use something like this,.....


#!/usr/local/bin/perl
use CGI;
my $query = new CGI;
print $query->redirect(-uri=>'http://www.someserver.com/',-nph=>0);
# do what ever work you need with the info submitted.



Depending on your Web server, you may need to set -nph to 1.  Also, the CGI.pm documentation says that some web servers make fully qualified URIs necessary... No relative paths to local pages.


 
 
 keep the rudder amid ship and beware the odd typo

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close