Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: submit button fails to pass the values using perl cgi?

by huck (Prior)
on Mar 30, 2017 at 10:13 UTC ( [id://1186474]=note: print w/replies, xml ) Need Help??


in reply to submit button fails to pass the values using perl cgi?

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> &nbsp<B>Sort</B> &nbsp"; my $site_selected="Building"; #@values=@columns; my @values = ('Building', 'Nepal','West','Landmark'); print popup_menu( -name => 'popup1', -values => \@values, -default => 'value2' ); print "&nbsp &nbsp &nbsp &nbsp &nbsp "; #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?

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1186474]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (3)
As of 2024-04-25 19:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found