Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - checkbox problem is driving me crazy
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

checkbox problem is driving me crazy

 Post Reply Post Reply Page  123>
Author
l_baltodano View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 09 June 2003
Location: Nicaragua
Status: Offline
Points: 39
Post Options Post Options   Thanks (0) Thanks(0)   Quote l_baltodano Quote  Post ReplyReply Direct Link To This Post Topic: checkbox problem is driving me crazy
    Posted: 26 September 2003 at 1:34pm

hi people.. i hope you can help me because iīm really about to cry.. well.. i canīt figure it out by my self so .. here is my question.

I have this email form wich is meant to go through an asp page and then sent to 2 mail boxes.. the thing is that iīm using checkboxes to let my visitors choose among many options.. but when the mail comes to my inbox the choise that has been made by the user doesnīt seem to be processed by the asp page...hereīs the code that iīm using to write my email (CDONTS)..and yes the checkboxes names are correct

'Initialse the var for the body
strBody = "<h2>E-mail sent from the Sponsorship Response Form .-La Gala-.</h2>"
strBody = strBody & "<br><b>Contact Name: </b>" & Request.Form("SRFCName")
strBody = strBody & "<br><br><b>Company: </b>" & Request.Form("SRFComp")
strBody = strBody & "<br><br><b>Address: -</b>" & Request.Form("SRFAd")
strBody = strBody & "<br><br><b>Telephone: </b>" & Request.Form("SRFPho")
strBody = strBody & "<br><br><b>Fax: </b>" & Request.Form("SRFFax")
strBody = strBody & "<br><br><b>E-mail: </b>" & Request.Form("SRFEmail")
strBody = strBody & "<br><br><b>The Company wants to be a: </b>"
If (Request.Form("SRF01")) = "on" Then
 strBody = strBody & "<br>Gala Benefactor"
End If
If (Request.Form("SRF02")) = "on" Then
 strBody = strBody & "<br>Gala Patron"
End If
If (Request.Form("SRF03")) = "on" Then
 strBody = strBody & "<br>Gala Mentor"
End If
If (Request.Form("SRF04")) = "on" Then
 strBody = strBody & "<br>Gala Contributor"
End If
If (Request.Form("SRF05")) = "on" Then
 strBody = strBody & "<br>Gala Friend"
End If
strBody = strBody & "<br><br><b>Payment Method:</b>"
If (Request.Form("SRF06")) = "on" Then
 strBody = strBody & "<br>We have enclosed our advertisement artwork"
End If

plz.. i need some help to figure out whatīs wrong with my code

Lau



Edited by l_baltodano
Back to Top
pmormr View Drop Down
Senior Member
Senior Member


Joined: 06 January 2003
Location: United States
Status: Offline
Points: 1479
Post Options Post Options   Thanks (0) Thanks(0)   Quote pmormr Quote  Post ReplyReply Direct Link To This Post Posted: 26 September 2003 at 2:03pm

post the source code of the page with the checkboxes. there might be something wrong with that page..

Back to Top
l_baltodano View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 09 June 2003
Location: Nicaragua
Status: Offline
Points: 39
Post Options Post Options   Thanks (0) Thanks(0)   Quote l_baltodano Quote  Post ReplyReply Direct Link To This Post Posted: 26 September 2003 at 2:18pm

hi pmormr.. this is the code for my checkboxes

<input type="checkbox" name="SRF01" value="ON">Gala Benefactor $ 20,000.00<br>
<input type="checkbox" name="SRF02" value="ON"> Gala Patron $ 15,000.00<br>
<input type="checkbox" name="SRF03" value="ON"> Gala Mentor $ 12,000.00<br>
<input type="checkbox" name="SRF04" value="ON"> Gala Contributor $ 6,000.00<br>
<input type="checkbox" name="SRF05" value="ON"> Gala Friend $ 3,000.00<br>

Back to Top
pmormr View Drop Down
Senior Member
Senior Member


Joined: 06 January 2003
Location: United States
Status: Offline
Points: 1479
Post Options Post Options   Thanks (0) Thanks(0)   Quote pmormr Quote  Post ReplyReply Direct Link To This Post Posted: 26 September 2003 at 2:46pm

make sure that you have a form tag with a method set to POST. u may also want to try removing your parenthesis around your Request.Form's in your code.

That is really expensive to be just a friend.

Back to Top
l_baltodano View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 09 June 2003
Location: Nicaragua
Status: Offline
Points: 39
Post Options Post Options   Thanks (0) Thanks(0)   Quote l_baltodano Quote  Post ReplyReply Direct Link To This Post Posted: 26 September 2003 at 2:51pm

jejee. ok.. hereīs the complete form's code

<!--Inicia el Formulario de Sponsorship-->
                        <form method="post" action="send_email.asp">
                          <span style="font-size: 9pt">
                          Our company would like to become a sponsor at the
                          following level: (Please mark one box)<br>
                          <br>
                          <span lang="es">&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;&nbsp;&nbsp;&nbsp;&nbsp;
                          </span>
                          <input type="checkbox" name="SRF01" value="ON"><span lang="es">
                          </span>Gala Benefactor $ 20,000.00<br>
                          <span lang="es">&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;&nbsp;&nbsp;&nbsp;&nbsp;
                          </span>
                          <input type="checkbox" name="SRF02" value="ON"> Gala Patron $ 15,000.00<br>
                          <span lang="es">&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;&nbsp;&nbsp;&nbsp;&nbsp;
                          </span>
                          <input type="checkbox" name="SRF03" value="ON"> Gala Mentor $ 12,000.00<br>
                          <span lang="es">&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;&nbsp;&nbsp;&nbsp;&nbsp;
                          </span>
                          <input type="checkbox" name="SRF04" value="ON"> Gala Contributor $ 6,000.00<br>
                          <span lang="es">&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;&nbsp;&nbsp;&nbsp;&nbsp;
                          </span>
                          <input type="checkbox" name="SRF05" value="ON"> Gala Friend $ 3,000.00<br>
&nbsp;</span></font></p>
                          <table border="0" cellpadding="0" cellspacing="3" style="border-collapse: collapse" bordercolor="#111111" width="98%" id="AutoNumber12">
                            <tr>
                              <td width="19%"><font face="Arial">
                        <span style="font-size: 9pt">
                        Company:</span></font></td>
                              <td width="81%">
                              <input type="text" name="SRFComp" size="39" style="font-size: 9px; font-family: Arial"></td>
                            </tr>
                            <tr>
                              <td width="19%"><font face="Arial">
                        <span style="font-size: 9pt">
                        Contact Name:</span></font></td>
                              <td width="81%">
                              <input type="text" name="SRFCName" size="39" style="font-size: 9px; font-family: Arial"></td>
                            </tr>
                            <tr>
                              <td width="19%"><font face="Arial">
       &n

Back to Top
pmormr View Drop Down
Senior Member
Senior Member


Joined: 06 January 2003
Location: United States
Status: Offline
Points: 1479
Post Options Post Options   Thanks (0) Thanks(0)   Quote pmormr Quote  Post ReplyReply Direct Link To This Post Posted: 26 September 2003 at 3:00pm

Does it give you an error, or does it just not send the email?

Back to Top
l_baltodano View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 09 June 2003
Location: Nicaragua
Status: Offline
Points: 39
Post Options Post Options   Thanks (0) Thanks(0)   Quote l_baltodano Quote  Post ReplyReply Direct Link To This Post Posted: 26 September 2003 at 3:15pm

it actually doesnīt give me errors but when i receive the email it shows up like this:

E-mail sent from the Sponsorship Response Form .-La Gala-.


Contact Name: Lautaro Baltodano

Company: DreamXplorer

Address: -Managua, Nicaragua

Telephone: 08816971

Fax: 2705891

E-mail: l_baltodano@yahoo.com

The Company wants to be a:

Payment Method:

did u noted the empty fields?.. thatīs the problem

Back to Top
pmormr View Drop Down
Senior Member
Senior Member


Joined: 06 January 2003
Location: United States
Status: Offline
Points: 1479
Post Options Post Options   Thanks (0) Thanks(0)   Quote pmormr Quote  Post ReplyReply Direct Link To This Post Posted: 26 September 2003 at 3:25pm
try using radio buttons instead of checkboxes...
Back to Top
 Post Reply Post Reply Page  123>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.