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.
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);