الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

البحث عن كود تفعيل زر ال Submit

بدأه azeezx في 9 مارس 2009 · 1 رد · 1,107 مشاهدة · في ASP.NET
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

السلام عليكم ورحمة الله وبركاته

اخواني واصدقائي انا لدي مشكله:

انا احاول صنع نموذج استبيان عن طريق الــphp او الــ asp وهذا النوذج يوضع داخل الأيميل بحيث استطيع ارساله الى اصدقائي وهم بدورهم يجاوبون عليه من داخل الأيميل وعند انتهائهم من الأجابات وتعبئت الخانات يقومون بالضغط على زر submit وهذا الزر وظيفته جمع الأجابات او ارسال الأستبانه كما هي بالأجابات الى ايميلي او الى اي ايميل انا اطلبه من خلال الكود نفسه

طبعا هذه العمليه تتم داخل الأيميل وليست مرتبطه بموقع معين

سوف اسرد لكم على سبيل المثال كود واضح حصلت عليه من احد المواقع واريد تطبيقه بتفعيل زر الـــــ submit واجعله يعمل من خلال الأيميل

** ارجو من الأصدقاء اذا لم يكن هذا المكان المناسب لطرح الموظوع ان يبلغوني بالمكان الصحيح **

<!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>

#2

لا يمكن وضع فورم من هذه النوعية (PHP أو ASP أو غيره) داخل إيميل. يجب استضافته في سيرفر ثم وضع رابط الفورم داخل الرسالة

مواضيع مشابهة