We have migrated to a new platform! Please note that you will need to reset your password to log in (your credentials are still in-tact though). Please contact firstname.lastname@example.org if you have questions.
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.
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 strict; 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');
print header; if ($doctor); open(OK, "./ok"); my $ok = ; $ok =~ tr/ok/ok/; print $ok; close(OK);