Gossamer Forum
Quote Reply
Using $IN->redirect
How would I go about passing all values from a form to another script?

Ex: A form has been submitted to plugin_one.cgi.
I want plugin_one just to pass all the form values to another script

Code:
sub plugin_one_handle {
# ------------------------------------------------------------------
# Determine what to do.
#

if ($IN->param('dest')) {

print $IN->redirect("$CFG->{db_cgi_url}/plugin_two.cgi?$IN");

}
}

I am not sure redirect is the correct way to go about it, but it seems it should be easy :-)

Thanks
Chris
RGB World, Inc. - Software & Web Development.
rgbworld.com
Quote Reply
Re: [rgbworld] Using $IN->redirect In reply to
Hi,

This should work

my $url = $IN->url(query_string => 1);
$url =~ s/^[\?]\?//g;
print $IN->redirect("$CFG->{db_cgi_url}/plugin_two.cgi?$url");

Cheers,



Cheers,

Dat

Programming and creating plugins and templates
Blog