#!/usr/bin/perl # Jaime Prilusky, 2008 # save as cgiReceive.cgi, use with cgiSend.html use CGI; use CGI::Carp 'fatalsToBrowser'; my $q = new CGI; print $q->header(); # here we receive the values from the browser # the string inside $q->param() should be exactly the same as # in the calling form. The receiving variable can be anything. my $selectedcolor = $q->param('color'); my $selectedDay = $q->param('day'); print "You selected day $selectedDay and color $selectedcolor";