Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

Maintain menu value - help.. anyone???

Quote Reply
Maintain menu value - help.. anyone???
I've tried the LinksSQL and Perl forums with no luck - can ANYONE help me figure this out?

I've put the following pull down menu values in the add and add failure sub routines (Links SQL) in html_templates, but when the add failure template is called it's just displaying the menu value passed to it as text, instead of returning the pull-down menu with the users selection preserved. Can anyone give me a pointer on how to get it to return the error page with their selection perserved but in the pull-down menu?

Thanks, Regan.

sub site_html_add_failure {
# --------------------------------------------------------
# This routine determines how the add failure page will look like.
#
my ($tags, $dynamic) = @_;
my $template = defined $dynamic ? $dynamic->param('t') : undef;
(ref $tags eq 'HASH') or croak "HTML_TEMPLATES: Argument '$tags' must be hash reference";

my $linktype .= qq|
<SELECT NAME="Link_Type">\n
<option value="">Select One...\n
<option value="Business">Business\n
<option value="Non-profit">Non-profit\n
<option value="Personal">Personal\n
<option value="Club/Org">Club/Org\n
<option value="Government">Government\n
</select>\n
|;

defined $dynamic and &load_user ($dynamic, $tags);
my $output = &load_template ('add_error.html', {
Link_Type => $linktype,
%$tags,
%GLOBALS
}, undef, $template);
defined $dynamic and &clean_output($dynamic, \$output);
print $output;
}

Subject Author Views Date
Thread Maintain menu value - help.. anyone??? ryel01 4916 Oct 24, 2000, 12:30 AM
Thread Re: Maintain menu value - help.. anyone???
pugdog 4859 Oct 24, 2000, 5:58 AM
Thread Re: Maintain menu value - help.. anyone???
Stealth 4863 Oct 24, 2000, 8:08 AM
Post Re: Maintain menu value - help.. anyone???
pugdog 4833 Oct 24, 2000, 4:21 PM
Thread Re: Maintain menu value - help.. anyone???
ryel01 4841 Oct 24, 2000, 4:50 PM
Thread Re: Maintain menu value - help.. anyone???
pugdog 4844 Oct 24, 2000, 5:50 PM
Thread Re: Maintain menu value - help.. anyone???
ryel01 4835 Oct 24, 2000, 8:33 PM
Thread Re: Maintain menu value - help.. anyone???
pugdog 4840 Oct 24, 2000, 10:03 PM
Post Re: Maintain menu value - help.. anyone???
ryel01 4834 Oct 24, 2000, 10:19 PM
Thread Re: Maintain menu value - help.. anyone???
Stealth 4806 Oct 26, 2000, 7:49 PM
Thread Re: Maintain menu value - help.. anyone???
ryel01 4786 Oct 29, 2000, 11:50 PM
Post Re: Maintain menu value - help.. anyone???
Stealth 4768 Oct 30, 2000, 7:25 AM