| Author |
Topic Search Topic Options
|
l_baltodano
Mod Builder Group
Joined: 09 June 2003
Location: Nicaragua
Status: Offline
Points: 39
|
Post Options
Thanks(0)
Quote Reply
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
|
 |
pmormr
Senior Member
Joined: 06 January 2003
Location: United States
Status: Offline
Points: 1479
|
Post Options
Thanks(0)
Quote Reply
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..
|
|
|
 |
l_baltodano
Mod Builder Group
Joined: 09 June 2003
Location: Nicaragua
Status: Offline
Points: 39
|
Post Options
Thanks(0)
Quote Reply
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>
|
 |
pmormr
Senior Member
Joined: 06 January 2003
Location: United States
Status: Offline
Points: 1479
|
Post Options
Thanks(0)
Quote Reply
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.
|
|
|
 |
l_baltodano
Mod Builder Group
Joined: 09 June 2003
Location: Nicaragua
Status: Offline
Points: 39
|
Post Options
Thanks(0)
Quote Reply
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"> &nb sp; </span> <input type="checkbox" name="SRF01" value="ON"><span lang="es"> </span>Gala Benefactor $ 20,000.00<br> <span lang="es"> &nb sp; </span> <input type="checkbox" name="SRF02" value="ON"> Gala Patron $ 15,000.00<br> <span lang="es"> &nb sp; </span> <input type="checkbox" name="SRF03" value="ON"> Gala Mentor $ 12,000.00<br> <span lang="es"> &nb sp; </span> <input type="checkbox" name="SRF04" value="ON"> Gala Contributor $ 6,000.00<br> <span lang="es"> &nb sp; </span> <input type="checkbox" name="SRF05" value="ON"> Gala Friend $ 3,000.00<br> </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
|
 |
pmormr
Senior Member
Joined: 06 January 2003
Location: United States
Status: Offline
Points: 1479
|
Post Options
Thanks(0)
Quote Reply
Posted: 26 September 2003 at 3:00pm |
Does it give you an error, or does it just not send the email?
|
|
|
 |
l_baltodano
Mod Builder Group
Joined: 09 June 2003
Location: Nicaragua
Status: Offline
Points: 39
|
Post Options
Thanks(0)
Quote Reply
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 
|
 |
pmormr
Senior Member
Joined: 06 January 2003
Location: United States
Status: Offline
Points: 1479
|
Post Options
Thanks(0)
Quote Reply
Posted: 26 September 2003 at 3:25pm |
|
try using radio buttons instead of checkboxes...
|
|
|
 |