As marto has pointed out, you are deficient in your examples. what you have posted will not work period. Luckily for you I can understand clueless newbie speak, and this works just fine for me.
#!/usr/bin/perl
use strict; use warnings;
select STDOUT; $| = 1;
use CGI ':standard';
# 1186469.pl
print header();
my $ispopup1=param('popup1');
$ispopup1='' unless (defined($ispopup1));
print 'Popup1:'.$ispopup1.'<br>'."\n";
print start_form();
print " <br>  <B>Sort</B>  ";
my $site_selected="Building";
#@values=@columns;
my @values = ('Building', 'Nepal','West','Landmark');
print popup_menu(
-name => 'popup1',
-values => \@values,
-default => 'value2'
);
print "          ";
#print hidden(-name =>"view",
# -value => $CGI_PARAM{'view'});
print submit('submit');
print end_form;
So just what is your problem? Do you not understand cgi at all either? Just what did you expect to happen that didnt happen? Just what did you expect not to happen that did happen? Can you post a proper question at all?
|