Rants
CGI help!
Mon, April 25, 2011 - 3:23 PMContact Us
<table border="0" align="center" width="400">
<tr>
<td align="justify" valign="top">
<form method="POST" action="www.nafaa.org/cgi-bin/con...m.cgi">
<table border="0">
<tr>
<td align="right">
Contact
</td>
<td>
<select name="contact" id="contact">
<option selected="selected" value="info">
General Info</option>
<option value="workshops">
Workshops</option>
<option value="safety">
Fire Safety</option>
</select>
Once in the CGI, I want to process the pop-down field and select the outbound email Thus:
$usecustomthankyou = "No";
$toemail = "info\@your_domain.com";
if($data{$contact_field} eq "workshops"){
$toemail = "workshops\@your_domain.com";
}
if($data{$contact_field} eq "safety"){
$toemail = "safety\@your_domain.com";
}
(domain changed for public viewing.)
Emails send and all, but no matter what I select on the pop-down, the mail goes to the default email address. It's like the if statements aren't getting processed at all.
Mon, April 25, 2011 - 3:23 PM -
permalink -
0 Comments
0 Comments |
add a comment |
