The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Sending survey through email
cusefan44
post Feb 5 2008, 04:52 PM
Post #1





Group: Members
Posts: 1
Joined: 5-February 08
Member No.: 4,886



Hey guys i know this is probably basic stuff but i am stuck. i want to send out a survey through blast email and allow them to fill it out in the email and submit it with out having to send a seperate email, just want the results of the persons survey to be sent to my email. Here is what i have tell me how bad im messing up:



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<%@ Page Language="VB" %>
<%@ Import Namespace="System.Web.Mail" %>

<script runat="Server">

Sub SubmitForm (s As Object, E As Eventrags)

pnlForm.Visible = False
pnlThanks.Visible = True

Dim message As String
Dim on As MailMessage
om = New MailMessage

om.From = Email.Value
om.To = "orangebbchamp@yahoo.com"
om.Subject = "ICS test"

Message = "Someone filled out the survey: <br />"
Message &= "Online Ticketing?:" & answer_6.value & "<br />"
Message &= "Store Front?:" & answer_7.value & "<br />"

om.Body = Message
om.BodyFormat = Mailformat.html


SmtpMail.AMtpServer = ""
SmtpMail.Send(om)
End Sub

</script>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>ICS Customer Survey</title>
</head>
<body style="background-image:url('http://athletics.internetconsult.com/images/background2_1.jpg');background-repeat:repeat-x;margin:0px;">


<center>


<div style="height:1200px; padding:0px">

<img src="http://athletics.internetconsult.com/images/header.jpg" height="107" width="770"
border="0" alt="Internet Consulting Services" />


<div style="background-color:#ffffff; width:766px; height:1000px; border-left:solid 2px black;border-right:solid 2px black;">
<div style="background-color:#ffffff; width:750px; height:950px; text-align:justify;
line-height:16px; font-size:11px; font-family:Verdana " >

<center>
<div style="background-color:#ffffff;font-size:11px; text-align:justify;
line-height:16px; width:742px; font-family:Verdana ">
<b>Dear ICS Client,</b><p />
We at ICS, in our efforts to provide you with even more services and products,
would like for you to take just a few moments of your time to fill the following survay.
With your information we will be able to distinquish what features you would like to see avaialble
and therefore hieghten your overall althletic website service.
</div>

<form runat="server">

<div style="font-size:11px; text-align:justify; line-height:16px; margin:0px 0px 5px 0px;
width:740px; font-family:Verdana">
<label for="email">Email:</label>
</div>
<div align="center">
<input type="text" size="50" maxlength="50" id="Email" runat="server">
</div>
<table style="background-color:#ffffff; margin:0px 0px 5px 0px; width:746px;
height:250px; text-align:justify; line-height:16px; font-size:11px;
font-family:Verdana">
<tr>
<td ><label for="question_1">1. Would you be interested in SMS, a new
technology that allows for you to send out text messages to your customers
informing them of game updates and scores?</label>
</td>
<td width="150px" align="center" >
<input type="radio" name="SMS" id="SMS_yes" runat="server" />
<label for="SMS">Yes</label>
<input type="radio" name="SMS" id="SMS_no" runat="server" />
<label for="SMS">No</label>
</td>
</tr>
<tr>
<td ><label for="question_2">2. Do you have an online store front available
for you to sell apparel online? </label>
</td>
<td width="150px" align="center" >
<input type="radio" name="storefront" id="SF_yes" runat="server" />
<label for="storefront">Yes</label>
<input type="radio" name="storefront" id="SF_no" runat="server" />
<label for="storefront">No</label>
</td>
</tr>
<tr>
<td ><label for="question_3">3. Would you be interested hosting advertising
space on your website as and additional source of revenue? </label>
</td>
<td width="150px" align="center" >
<input type="radio" name="advertising" id="ad_yes" runat="server" />
<label for="advertising">Yes</label>
<input type="radio" name="advertising" id="ad_no" runat="server" />
<label for="advertising">No</label>
</td>
</tr>
<tr>
<td ><label for="question_4">4. Blogging is a fairly new method for people
to go online and submit questions comments they have on
topics. Some people even use video and audio recordings to ask
their questions to be more involved. Would you be interested in
this technology on your site? </label>
</td>
<td width="150px" align="center" >
<input type="radio" name="video" id="vid_yes" runat="server" />
<label for="video">Yes</label>
<input type="radio" name="video" id="vid_no" runat="server" />
<label for="video">No</label>
</td>
</tr>
<tr>
<td ><label for="question_5">5. Does the idea of being able to sell tickets
online to your customers interest you? </label>
</td>
<td width="150px" align="center" >
<input type="radio" name="tickets" id="ticket_yes" runat="server" />
<label for="tickets">Yes</label>
<input type="radio" name="tickets" id="ticket_no" runat="server" />
<label for="tickets">No</label>
</td>
</tr>
</table>

<div style="font-size:11px; text-align:justify; line-height:16px; margin:0px 0px 5px 0px;
width:740px; font-family:Verdana">
<label for="question_6">6. If ICS offered an online ticketing solution for
games that would be available for purchase your site, what
features would you like to see available to you?</label>
</div>
<div align="center">
<textarea name="answer_6" rows="5" cols="70"></textarea>
</div>
<div style="font-size:11px; text-align:justify; line-height:16px; margin:5px 0px 5px 0px;
width:740px; font-family:Verdana">
<label for="question_7">7. If you have a store front already or are
thinking of getting one, what features do you like, dislike,
or would like to see?</label>
</div>
<div align="center">
<textarea name="answer_7" rows="5" cols="70"></textarea>
</div>
<div style="font-size:11px; text-align:justify; line-height:16px; margin:5px 0px 5px 0px;
width:740px; font-family:Verdana ">
<label for="question_8">8. What video and audio aspects would you want to
offer online for your cutomers?</label>
</div>
<div align="left" style="margin:0px 0px 15px 250px">
<input type="checkbox" name="answer_8" id="interviews_8" runat="server" />
<label for="answer_8">Interviews</label><br />

<input type="checkbox" name="answer_8" id="Radio_Shows" runat="server" />
<label for="answer_8">Radio Shows</label><br />

<input type="checkbox" name="answer_8" id="Fan_blog" runat="server" />
<label for="answer_8">Fan video/audio blogging</label><br />

<input type="checkbox" name="answer_8" id="Fan_Ques" runat="server" />
<label for="answer_8">Interactive fan video Questionss</label><br />

<input type="checkbox" name="answer_8" id="Game_com" runat="server" />
<label for="answer_8">Live Game Commentators</label><br />

<input type="checkbox" name="answer_8" id="other" runat="server" />
<label for="answer_8">Other</label>
<input type="text" maxlength="100" size="15" id="other_b" runat="server" /><br />
</div>

<%@ Page Language="VB" %>
<%@ Import Namespace="System.Web.Mail" %>

<script runat="Server">

<div>
<asp:Button ID="survey_submit" runat="server" Text="Submit Form" onclick="SubmitForm" />

</div>
</script>

<div>
<input type="submit" value="Submit Survey" onclick="SubmitForm" />
</div>

</form>

</center>
</div>
</div>



</div>
</center>


</body>
</html>
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Darin McGrew
post Feb 6 2008, 07:53 PM
Post #2


WDG Member
********

Group: Root Admin
Posts: 8,365
Joined: 4-August 06
From: Mountain View, CA
Member No.: 3



Please see the FAQ entry How do I get form data emailed to me?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 26th April 2024 - 09:22 PM