Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
Drop down menus with html and perl
Ok what i want to do(and i am having trouble with 1 little thing) is to create a page where u select from a list then click submit and it displays items from the list u selected.
Let says i wanted to select Doctor so i clicked on it from the dropdown menu list and then clicked submit. Then when the code was ran it would run a if statement finding out which one of the lists the user chose then displayed everything that was under that list. here is the code i have so far just having trouble with getting the if statment in there.
heres the html
heres the cgi
use CGI qw(:standard);
use CGI::Carp qw(fatalsToBrowser);
my $doctor = param('doctor');
my $dentist = param('dentist');
my $health = param('health');
my $life = param('life');
my $car = param('car');
my $ok = ;
$ok =~ tr/ok/ok/;
0 · ·