Hmm... now I'm getting an error after submitting the form:
Parse error: syntax error, unexpected ',' in /home/.olyushablender/atonsadm/atons.us/joomla/components/com_chronocontact/chronocontact.php(361) : eval()'d code on line 2
I'm hoping someone can spot my mistake, so here is a screenshot of my General fields, and below is the code from the Form Code page.
Here is my form html:
<table cellpadding=0 cellspacing=0 border=0>
<tr>
<td align="left" valign="top">Send To:</td>
<td align="left" valign="top"><select id="recipient" name="recipient">
<option selected>Select a recipient</option>
<option value="em1">Andrew Bertke-President</option>
<option value="em2">Sam Carlisle-MAC Rep</option>
<option value="em3">Bruce Chambers-Secretary</option>
<option value="em4">Kelley Herridge</option>
<option value="em5">Mark Ludwig-Vice President</option>
<option value="em6">Paul Rozendaal-Treasurer</option>
<option value="em7">Bobbie Smith-Quartermaster</option>
<option value="em8">Del Vogt-Social Chair</option>
</select></td>
</tr>
<tr>
<td align="left" valign="top">Â </td>
</tr>
<tr>
<td align="left" valign="top">From:</td>
<td align="left" valign="top"><input name="realname" type="text" id="realname" size="35"/></td>
</tr>
<tr>
<td align="left" valign="top">Â </td>
<td align="left" valign="top">Â </td>
</tr>
<tr>
<td align="left" valign="top">E-mail:</td>
<td align="left" valign="top"><input name="email" type="text" id="email" size="35"></td>
</tr>
<tr>
<td align="left" valign="top">Â </td>
<td align="left" valign="top">Â </td>
</tr>
<tr>
<td align="left" valign="top">Subject:</td>
<td align="left" valign="top"><input name="subject" type="text" id="subject" size="35"/></td>
</tr>
<tr>
<td align="left" valign="top">Â </td>
</tr>
<tr>
<td align="left" valign="top">Message:</td>
<td align="left" valign="top"><textarea name="message" cols="40" rows="10" id="message"></textarea></td>
</tr>
<tr>
<td>Â </td>
</tr>
<tr>
<td colspan="2"><input name="submit" type="submit" value="Submit">
<input name="reset" type="reset" value="Reset"></td>
</tr>
</table>
Here is my submit before sending code:
<?php
$emails = array('em1'=>'president@atons.net', 'em2'=>'macrep@atons.net', 'em3'=>'secretary@atons.net', 'em4'=>'herridgerk@msn.com', 'em5'=>'vicepresident@atons.net', 'em6'=>'treasurer@atons.net', 'em7'=>'quartermaster@atons.net'), 'em8'=>'activities@atons.net');
$rows[0]->extraemail = $emails[$_POST['recipients']];
?>
<br><br>Post edited by: drewan, at: 2007/08/20 15:10