in reply to how do I redirect to a previous page in my CGI script

Redirecting the user to the previous page using CGI.pm should be failry straightforward. Here's some sample code that should give you an idea on how to go about this.
#!/usr/bin/perl use strict; use CGI; my $query = CGI->new(); # code to enter records into database goes here. my $referrer = $ENV{HTTP_REFERER}; print $query->redirect($referrer);

Hope this helps.

- wil

Replies are listed 'Best First'.
•Re: Re: how do I redirect to a previous page in my CGI script
by merlyn (Sage) on May 14, 2002 at 14:51 UTC