I have an html form containing the usual text boxes and a checkbox. When submitted to the server the user receives both an email acknowledgement as well as an html "thank you" page, both delivered by a perl cgi script. Depending on whether the checkbox is checked or not on submission, is it possible to change the message the user receives? i.e. checkbox true, print "thank you for attending", checkbox unchecked, print "Sorry you can't make it". This would be required for both the html page and the mail back to the user.
Any help or advice with this would be very much appreciated.
toptier
0
Newbie Poster
Recommended Answers
Jump to PostIt will depend on how your current perl script is coded. Does it use the CGI module?
Jump to PostYou are using a module:
use CGI;
all you have to do is check for $attend
if ($attend) { the box was checked do what you want here } else { the box was not checked do what you want here }
All 6 Replies
KevinADC
192
Practically a Posting Shark
toptier
0
Newbie Poster
KevinADC
192
Practically a Posting Shark
toptier
0
Newbie Poster
KevinADC
192
Practically a Posting Shark
toptier
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.