Advertisement

05.12.2007 at 02:44AM PDT, ID: 22568195
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.2

Dreamweaver & FormMail Problems using VBSCRIPT & ASP

Asked by rpartington in Macromedia Dreamweaver, Miscellaneous Web Development, VB Script

Tags: , , ,

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">&nbsp;</td>
                    <td width="7">&nbsp;</td>
                    <td></td>
                </tr>
                <tr>
                  <td height="38">&nbsp;</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>&nbsp;</td>
                  <td></td>
                </tr>
                <tr>
                  <td height="23"></td>
                  <td>&nbsp;</td>
                  <td></td>
                </tr>
                <tr>
                  <td height="47"></td>
                  <td width="194">&nbsp;</td>
                  <td width="400">&nbsp;</td>
                  <td>&nbsp;</td>
                  <td>&nbsp;</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">&nbsp;</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 = "&nbsp;:<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>Comments:</td><td>" & Comments & "</td></tr><tr><td>ThreeFive:</td><td>" & ThreeFive & "</td></tr><tr><td>SixSeven:</td><td>" & SixSeven & "</td></tr><tr><td>EightTen:</td><td>" & EightTen & "</td></tr><tr><td>TenPlus:</td><td>" & TenPlus & "</td></tr></table>"


Set objCDOMail = Server.CreateObject("CDONTS.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>&nbsp;</td></tr><tr><td>&nbsp;</td></tr><tr><td>" & MyBody & "</td></tr><tr><td>" & EmailContents & "</td></tr></table></center></body></html>"
objCDOMail.MailFormat =  CdoMailFormatMime
objCDOMail.Send
%>Start Free Trial
[+][-]05.12.2007 at 06:55AM PDT, ID: 19078350

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Macromedia Dreamweaver, Miscellaneous Web Development, VB Script
Tags: formmail, dreamweaver, vbscript, asp
Sign Up Now!
Solution Provided By: esw074
Participating Experts: 2
Solution Grade: A
 
 
[+][-]05.13.2007 at 03:59PM PDT, ID: 19082292

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32