<body>
<table width="100%" border="0" cellpadding="5" cellspacing="10" bgcolor="#ffffff">
<tr>
<td colspan="2" align="center" class="aboutUs"><h1>Contact Us</h1>
<h4>Questions or Comments? <br />
You can contact Any of ****** departments by using the form below.</h4>
<hr color="#900000" /></td>
</tr>
<tr>
<td colspan="2" >
<h4 class="eventhead"><strong>Please fill in all information so we can contact you back. If you would like a call back, please enter that into comments section with the best time to call you.<br />
Thank you!
</strong></span></span></h4></td>
</tr>
<tr>
<td width="30%" align='center'>
<td width="70%" align='left'>
<form action='index.php' method='post'>
<p>Name:
<input type='text' size'50' name='name' />
</p>
<p>
Email:
<input type='text' size='50' name='email' />
<p>
Dept:
<select name='dropdown' >
<option name=''>Please Choose Dept.</option>
<option name='boating@******.com'>Boating</option>
<option name='camping@******.com'>Camping</option>
<option name='fishing@******.com'>Fishing</option>
<option name='general@******.com'>General</option>
<option name='guns@******.com'>Guns</option>
<option name'hunting@******.com'>Hunting</option>
<option name='sales@******.com'>Sales</option>
<option name='site@******.com'>Site Management</option>
<option name='toys@******.com'>Toys</option>
</select>
<p>Subject:
<input type='text' size='50' name='subject' />
<p>Comments/Suggestions:<br />
<textarea rows='10' cols='50' name='comment'></textarea>
<p>
<input type="submit" value="Send">
<input type="hidden" name="content" value="sendemail">
</form>
<tr>
<td colspan="2" align='center'>
<hr color="#900000" />
</td>
</tr>
</table>
I'm using tables since the person who is going to be managing this isn't CSS savvy so please don't comment on that, I would rather use div tags, sorry.
The select/options section is the main issue. I haven't created the sendemail yet, I was going to do that once I can figure out the array part or if I even need an array.
My Q is how would I go about setting the $sendto to the email in the list? Do I need to make it an array or can I just have them select from the drop down and assign it to $sendto in the sendemail page?
Any suggestions would be greatly appreciated!!
This post has been edited by laehm: 27 April 2011 - 02:05 PM

New Topic/Question
Reply




MultiQuote




|