Did you mean sub_hidden? I don't find a sub_request in GForum.pm.
Here's what is probably the relevant code.
I want the variable called "fp" to be carried in the url along with the session id. fp should default to 6.
How do you insert that into this code?
my (@return, $return);
if ($needed eq 'query') {
for my $key (keys %HIDDEN) {
if (ref $HIDDEN{$key} eq 'ARRAY') {
for (@{$HIDDEN{$key}}) {
push @return, $IN->escape($key) . "=" . $IN->escape($_);
}
}
else {
push @return, $IN->escape($key) . "=" . $IN->escape($HIDDEN{$key});
}
}
$return = join "&", @return;
Here's what is probably the relevant code.
I want the variable called "fp" to be carried in the url along with the session id. fp should default to 6.
How do you insert that into this code?
Code:
my $needed = shift || "query"; my (@return, $return);
if ($needed eq 'query') {
for my $key (keys %HIDDEN) {
if (ref $HIDDEN{$key} eq 'ARRAY') {
for (@{$HIDDEN{$key}}) {
push @return, $IN->escape($key) . "=" . $IN->escape($_);
}
}
else {
push @return, $IN->escape($key) . "=" . $IN->escape($HIDDEN{$key});
}
}
$return = join "&", @return;