Im using Dreamweaver 8.0.2
Ive had a form on a website for some years its a htm page with the form and links to the ASP page to do the hard work. Its worked perfectly for years, but I want to add 4 radio buttons using a radiogroup and as Ive moved away completely from web work to support work I cant for the life of me remember how I got it working all them years ago.
The rest of the form works still with the radiogroup on the form and when I submit the form the email brings across all the inputted text fields EXCEPT I cant for the life of me get the radio button I select to show on the generated email.
ANY HELP GREATLY APPRECIATED, This is bugging me as its got to be something obvious but I cant for the life of me spot it.
BELOW IS THE FORM MAIL RECEIVED BUT MINUS ANY INPUT IN THE RADIO BUTTONS SECTION IE
ThreeFive: SixSeven: EightTen: TenPlus:
**************************
**********
**********
**********
*****
FormMail submission :
Name: Joe Blogs
EMail: whatever@mydomain.com
Phone: 01642453674
Address: 3 My Street, My Town
Comments: Why are non of the radio buttons below showing when I select them I selected SixSeven
ThreeFive:
SixSeven:
EightTen:
TenPlus:
**************************
**********
**********
********
Below is the form inserted into the htm page and further below is the main section of the ASP page. At the moment Ive only put 2 fields
**************************
**********
**********
*********
<form method="post" action="contactus_process.
asp">
<input type=hidden name="redirect" value="
http://www.domain.co.uk/thankyou.htm">
<input type=hidden name="recipient" value="info@DomaIn.co.uk">
<input type=hidden name="subject" value="FormMail submission">
<table width="100%" border="0" align="left" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="91" height="24"><font color="#000000" face="Verdana, Arial, Helvetica, sans-serif" size="1">Your
Name</font></td>
<td colspan="4"><font color="#FFFFFF">
<input name="Name" type="text" name="Name" id="Name" size="30">
</font></td>
<td width="5"></td>
</tr>
<tr>
<td height="24"><font color="#000000" face="Verdana, Arial, Helvetica, sans-serif" size="1">Your
E-mail</font></td>
<td colspan="4"><font color="#FFFFFF">
<input name="EMail" type="text" name="EMail" id="EMail" size="30">
</font></td>
<td></td>
</tr>
<tr>
<td height="36"><font color="#000000" face="Verdana, Arial, Helvetica, sans-serif" size="1">Your
Phone No: </font></td>
<td colspan="4"><font color="#FFFFFF">
<input name="MyPhone" type="text" name="MyPhone" id="MyPhone" size="30">
</font></td>
<td></td>
</tr>
<tr>
<td height="36" valign="top"><font color="#000000" face="Verdana, Arial, Helvetica, sans-serif" size="1">Your
Address </font></td>
<td colspan="2" rowspan="2" valign="top"><font color="#FFFFFF">
<textarea name="Address" cols="30" name="Address" id="Address"></textarea>
</font></td>
<td width="53"> </td>
<td width="7"> </td>
<td></td>
</tr>
<tr>
<td height="38"> </td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td height="36" valign="top">Amounts</td>
<td colspan="3" rowspan="2" valign="top"><p>
<font size="2">
<label>
<font face="Verdana, Arial, Helvetica, sans-serif">
<input type="radio" name="RadioGroup1" value="ThreeFive">
3- 5</font></label>
<font face="Verdana, Arial, Helvetica, sans-serif">
<input type="radio" name="RadioGroup1" value="SixSeven">
<label>6 - 7</label>
<input type="radio" name="RadioGroup1" value="EightTen">
8 - 10
<label>
<input type="radio" name="RadioGroup1" value="TenPlus">
10 +</label>
</font></font><br>
<label></label>
<br>
<label></label>
<br>
<label></label>
<br>
</p></td>
<td> </td>
<td></td>
</tr>
<tr>
<td height="23"></td>
<td> </td>
<td></td>
</tr>
<tr>
<td height="47"></td>
<td width="194"> </td>
<td width="400"> </td>
<td> </td>
<td> </td>
<td></td>
</tr>
<tr>
<td height="83" colspan="2" valign="top"><font color="#000000" size="1" face="Verdana, Arial, Helvetica, sans-serif">Comments</font
></td>
<td colspan="3" valign="top">
<div align="justify">
<textarea name="Comments" cols="50" rows="5"></textarea>
</div></td>
<td></td>
</tr>
<tr>
<td height="24"> </td>
<td colspan="4" valign="top"> <input type="submit" name="Submit" value="Send"> </td>
<td></td>
</tr>
</table>
</form></td>
**************************
**********
**********
**********
**********
**********
**********
**********
*
BELOW IS THE MAIN ENGINE ON THE ASP PAGE WHICH GENERATES THE EMAIL
**************************
**********
**********
**********
**********
**********
**********
**********
*
<%@ Language=VBScript %>
<%
redirection = Request.Form("redirect")
'redirection = "
http://www.domain.co.uk"
recipient = Request.Form("recipient")
'recipient = "info@domain.co.uk"
subject = Request.Form("subject")
MyName = Request.Form("name")
EMail = Request.Form("Email")
MyPhone = Request.Form("MyPhone")
Address = Request.Form("Address")
ThreeFive = Request.Form("ThreeFive")
SixSeven = Request.Form("SixSeven")
EightTen = Request.Form("EightTen")
TenPlus = Request.Form("TenPlus")
Comments = Request.Form("Comments")
spacer = " :<br><br>"
MyBody = subject & spacer
EmailContents = "<table><tr><td>Name:</td>
<td>" & MyName & "</td></tr><tr><td>EMail:<
/td><td>" & EMail & "</td></tr><tr><td>Phone:<
/td><td>" & MyPhone & "</td></tr><tr><td>Address
:</td><td>
" & Address & "</td></tr><tr><td>Comment
s:</td><td
>" & Comments & "</td></tr><tr><td>ThreeFi
ve:</td><t
d>" & ThreeFive & "</td></tr><tr><td>SixSeve
n:</td><td
>" & SixSeven & "</td></tr><tr><td>EightTe
n:</td><td
>" & EightTen & "</td></tr><tr><td>TenPlus
:</td><td>
" & TenPlus & "</td></tr></table>"
Set objCDOMail = Server.CreateObject("CDONT
S.NewMail"
)
objCDOMail.From = "" & MyName &"<" & EMail & ">"
objCDOMail.To = recipient
objCDOMail.Subject = subject
'objCDOMail.Bcc=myVar
objCDOMail.BodyFormat = CdoBodyFormatHTML
objCDOMail.Body = "<html><head></head><body topmargin=""0"" leftmargin=""0""><center><
table border=""0"" width=""776"" align=""left"" cellpadding=""0"" cellspacing=""0""><tr><td>
</td
></tr><tr>
<td>
</td></tr>
<tr><td>" & MyBody & "</td></tr><tr><td>" & EmailContents & "</td></tr></table></cente
r></body><
/html>"
objCDOMail.MailFormat = CdoMailFormatMime
objCDOMail.Send
%>
Start Free Trial