Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Submit buttons and param name

Reply
Thread Tools

Submit buttons and param name

 
 
drood
Guest
Posts: n/a
 
      11-21-2006
This allows a user to look for data on 2 different servers.

#########################
print submit(-name=>'choice', -value=>'Check Main Server ');
print "<br>";
print submit(-name=>'choice', -value=>'Check Local Server');
##########################

When I check which button is selected using:

#############################
foreach $name ( param() ) {
$value = param($name);
print "$name = $value<br>";
}
#############################

, I either get:

local = Check Local Server
or
main = Check Main Server

It seems the name of the param, local or main, is self generated. The
word 'main' and 'local' do not appear in the program.

What's the deal?

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
HTML::Template->param() : You gave me an odd number of parameters to param()! Dave Perl Misc 5 04-26-2011 02:44 AM
setting form parameter with same name as submit buttons Steven Bethard Javascript 14 09-07-2007 06:49 PM
Forms with multiple submit buttons vs 'form' objects with single 'submit' methods neil.fitzgerald@ic.ac.uk Python 4 04-14-2006 04:58 PM
Overload by deriv class param; call w base class param ectoplasm C++ 12 07-28-2005 08:20 AM
XSLT: How to replace param name with this param's value ? Geathaa XML 2 07-30-2003 06:48 AM



Advertisments