Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
What am I doing wrong?
The script code is:
The HTML section is:my $consider1 = param('consider1'); sub email { open (MAIL, "| $sendmail -t") or die "Cannot open sendmail: $!"; print MAIL "To: $adminmail\n"; print MAIL "From: $usermail\n"; print MAIL "Subject: $subject\n\n"; print MAIL "--------------------\n"; print MAIL "Name: $username\n"; print MAIL "Email: $usermail\n"; print MAIL "Date: $time\n"; print MAIL "--------------------\n"; print MAIL "\n\n"; print MAIL "Question 1:\n"; print MAIL "What is your biggest problem?\n"; print MAIL " $problem1\n"; print MAIL "How would you like this solution delivered?\n"; print MAIL " $delivery1\n"; print MAIL "If Kent created this product, what price would be outs +ide of your budget?\n"; print MAIL " $toomuch1\n"; print MAIL "If Kent created this product, at what price would you +CONSIDER buying it?\n"; print MAIL " $consider1\n"; print MAIL "If Kent created this product, at what price would you +MOST SURELY buy it?\n"; print MAIL " $willbuy1\n"; print MAIL "If Kent created this product, what price would be too +undervalued that you wouldn't purchase it? \n"; print MAIL " $toolittle1\n"; close(MAIL) or die "Cannot close $sendmail: $!"; }
<td><p align="left"> <input name="delivery1" type="checkbox" id="delivery1" value=" +Video/DVD"> Video/DVD <input name="delivery1" type="checkbox" id="delivery1" value=" +Online Video"> Online Video <br> <input name="delivery1" type="checkbox" id="delivery1" value=" +Software"> Software <input name="delivery1" type="checkbox" id="delivery1" value=" +Electronic Book"> Electronic Book <br> <input name="delivery1" type="checkbox" id="delivery1" value=" +Physical Book"> Physical Book <input name="delivery1" type="checkbox" id="delivery1" value=" +Live Seminar"> Live Seminar <br> <input name="delivery1" type="checkbox" id="delivery1" value=" +Telephone Seminar"> Telephone Seminar </p> </td>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Checkboxes
by neuroball (Pilgrim) on Jan 17, 2004 at 07:14 UTC | |
|
Re: Checkboxes
by flatline (Novice) on Jan 17, 2004 at 17:27 UTC |