View Full Version : Multiple receivers in contact form for webpage

07-16-2008, 07:07 PM

I am totally new to HTML coding.
I have a problem. I found a good code for a contact form to my web page on a Google search. the problem is that i want the option to send the message written in the text field to the receiver chosen from the drop down menu . How is that possible, and what should i add to my code?
This is how my code looks:

<form action="http://www.123contactform.com/contact-form-Sixmax-3273.html" method="POST" enctype="multipart/form-data">
<input type="hidden" name="action" value="verify"><table>
<tr><td valign=top><font size="2" FACE="Verdana" color="#000000">Name:</font><small><span style="color:#E00000;" title="Required field">*</span></small></td><td>
<input name="control19020" type="text" value="" size="20"/>
<tr><td valign=top><font size="2" FACE="Verdana" color="#000000">Email:</font><small><span style="color:#E00000;" title="Required field">*</span></small></td><td>
<input name="control19021" type="text" value="" size="20"/>
<tr><td valign=top><font size="2" FACE="Verdana" color="#000000">Receiver:</font><small><span style="color:#E00000;" title="Required field">*</span></small></td><td>
<select name="control19025">
<option value="Formanden: S&#248;ren M&#248;ller Hansen">Formanden: S&#248;ren M&#248;ller Hansen</option>
<option value="Kasserer: Martin Schweinberger">Kasserer: Martin Schweinberger</option>
<option value="Menig: Christian Sylvester Christensen">Menig: Christian Sylvester Christensen</option>
<option value="Menig: Andreas Lund Ertbjerg">Menig: Andreas Lund Ertbjerg</option>
<option value="Historiker: S&#248;ren Bech Hansen">Historiker: S&#248;ren Bech Hansen</option>
<option value="Juniorleder: Martin Reib Petersen">Juniorleder: Martin Reib Petersen</option>
<option value="Webmaster: Sixten Maximillian Thestrup">Webmaster: Sixten Maximillian Thestrup</option>
<option value="Redakt&#248;r: Thomine Stolberg-Rohr">Redakt&#248;r: Thomine Stolberg-Rohr</option>
<option value="Indk&#248;ber: Ted Henrik Sandbech">Indk&#248;ber: Ted Henrik Sandbech</option>
<option value="Medredakt&#248;r: ">Medredakt&#248;r: </option>
<option value="Carl-Albert Demidoff">Carl-Albert Demidoff</option>
<option selected value=""></option>
<tr><td valign=top><font size="2" FACE="Verdana" color="#000000">Subject:</font><small><span style="color:#E00000;" title="Required field">*</span></small></td><td>
<input name="control19022" type="text" value="" size="20"/>
<tr><td valign=top><font size="2" FACE="Verdana" color="#000000">Message:</font><small><span style="color:#E00000;" title="Required field">*</span></small></td><td>
<textarea name="control19023" rows="7" cols="20"></textarea>
<tr><td></td><td><input type="submit" value="Send email"/></td></tr>

I hope that someone out there got the answer!
Thanks in advance


07-16-2008, 07:19 PM
You would have to use a server side coding, such as PHP or .net to talk to the server and send the text in the field. You cant do that with HTML alone. Check in the php section of the forum and they will be able to help you better than in here.


07-16-2008, 07:20 PM
Thanks for the answer!

I'll do that :-)