in reply to How to retrieve information from radio buttons

Hi.

Radio buttons are designed so you can only select one of them at a time ( unlike checkboxes ). If you write some code like this:

#!/usr/bin/perl -wT print "Content-type: text/html\n\n"; use strict; use CGI; use CGI::Carp qw( fatalsToBrowser ); my $name; my $favorite_food; my $q = new CGI; $name = $q->param("name"); $favorite_food = $q->param("favorite_food"); print <<EOF; <HTML> <HEAD> <TITLE> </TITLE> </HEAD> <BODY> <H4>Thank you $name. I also like $favorite_food.</H4> </BODY> </HTML> EOF


If name and favorite_food were designated as fields originating from radio buttons, their 'name/value' would be stored in the respective variables. Hope this helps, -DK