$self->header_props(
-uri => "$url?rm=runmode1"
);
$self->header_type('redirect');
Jay Flowers
Integic
Health Care
-----Original Message-----
From: Bob Hicks [mailto:suppressed
Sent: Friday, June 27, 2003 3:40 PM
To: suppressed
Subject: [cgiapp] Saving a form and setting runmode back to something
I have the following (which I hope will save the contents of a textarea
to a file). Once the save is done I want the user to redirected back to
my runmode 1. How would I set this?
sub save_form {
# Get CGI query object
my $q = $self->query();
my $record = $q->param('text_field');
open(OUTFILE, ">output.txt") or die "Can't open output.txt: $!";
print OUTFILE $record;
close OUTFILE;
}
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/suppressed/
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/suppressed/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.