George,

Radio buttons work fine. Sorry I told you to give the radio button elements
different names. This is not correct. The following works for me:

<html><body>
<form method=post action="/perl-bin/testRun">
<p>
<table border=0>
<tr><td><input type=radio name="parm" value="query"></td><td>Customer
bank codes & acct #</td></tr>
<p>
<tr><td><input type=radio name="parm" value="oscmd"></td><td>WRKCFGSTS
*NWS</td></tr>
<p>
<tr><td><input type=radio name="parm" value="query3"></td><td>Not
enabled</td></tr>
</center></table>
<input type=submit value=ENTER>
</form>
</body></html>


#!/QOpenSys/perl/bin/perl

use CGI;

my $cgi = new CGI;
my @params = $cgi->param();

if (scalar @params != 0 ) {
  print $cgi->header();
  print "<p>" . $cgi->param('parm') . "</p>";
} else {
  print "Status: 204 No Response\n";
}
print $cgi->end_html();

Greg


On 11/17/06, George Morey <George.Morey@xxxxxxxxxxxx> wrote:

Greg,

Radio buttons out of the question with Perl?

George...

> >
> > <form method=post action="/cgi-bin/dbtest4?parm">
> > <p>
> > <table border=0>
> > <tr><td><input type=radio name=parm
value="query"></td><td>Customer
> > bank codes & acct #</td></tr>
> > <p>
> > <tr><td><input type=radio name=parm
value="oscmd"></td><td>WRKCFGSTS
> > *NWS</td></tr>
> > <p>
> > <tr><td><input type=radio name=parm value="query3"></td><td>Not
> > enabled</td></tr>
> > </center></table>
> >


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.