Submit buttons and param name

D

drood

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top