# Submit\_form

**URL:** <https://forum.kirupa.com/t/submit-form/61931>\
**Category:** programming\
**Created:** [August 23, 2004, 1:08pm UTC](https://forum.kirupa.com/t/submit-form/61931 "2004-08-23T13:08:40Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![pucca](https://avatars.discourse-cdn.com/v4/letter/p/5f8ce5/32.png) [@pucca](https://forum.kirupa.com/u/pucca)\
**Post date:** [August 23, 2004, 1:08pm UTC](https://forum.kirupa.com/t/submit-form/61931/1 "2004-08-23T13:08:40Z")

</div>

I’ve created an asp submit\_form. but the thing is, it doesn’t always work. why not? I’ve tested it a couple of times, and sometimes I receive the email, and sometimes not. Can you help me?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 23, 2004, 5:09pm UTC](https://forum.kirupa.com/t/submit-form/61931/2 "2004-08-23T17:09:02Z")

</div>

lol 😛 You might wanna throw some code at us since nobody has any idea how you made it…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 24, 2004, 10:09am UTC](https://forum.kirupa.com/t/submit-form/61931/3 "2004-08-24T10:09:59Z")

</div>

You asked for it: … :ne: Not sure if you can make anything out?

sorry, but I don’t really know what’s going on here… I’m a beginner and very confused!:puzzled:

\<html\>

\<head\>  
\<meta http-equiv=“Content-Language” content=“en-us”\>  
\<meta http-equiv=“Content-Type” content=“text/html; charset=windows-1252”\>  
\<meta name=“GENERATOR” content=“Microsoft FrontPage 4.0”\>  
\<meta name=“ProgId” content=“FrontPage.Editor.Document”\>  
\<title\>breath\_of\_God\</title\>  
\<meta name=“Microsoft Border” content=“b”\>  
\</head\>

\<body bgcolor="#000000" background=“images/submit\_back.jpg”\>  
\<!–msnavigation–\>  
\<table width=“697” height=“604” border=“0” cellpadding=“0” cellspacing=“0” dir=“ltr”\>  
\<tr\>\<!–msnavigation–\>  
\<td width=“697” height=“604” valign=“top”\>  
\<!–webbot bot=“HTMLMarkup” startspan alt="(_Send Auto Email_)" --\>  
\<%  
Dim Mailer

session(“name”) = request.form(“name”)  
session(“email”) = request.form(“email”)  
session(“tel”) = request.form(“tel”)  
session(“address”) = request.form(“address”)  
session(“partners”) = request.form(“partners”)  
session(“kids”) = request.form(“kids”)  
session(“music”) = request.form(“music”)  
session(“theatre”) = request.form(“theatre”)  
session(“dance”) = request.form(“dance”)  
session(“sats”) = request.form(“sats”)

HTML = HTML & “\<head\>”  
HTML = HTML & “\<title\>Visitor Submission\</title\>”  
HTML = HTML & “\</head\>”  
HTML = HTML & “\<body\>”  
HTML = HTML & "\<p\>Visitor Name: " & Session(“name”) & “\</p\>”  
HTML = HTML & "\<p\>Visitor E-Mail: " & Session(“email”) & “\</p\>”  
HTML = HTML & "\<p\>Visitor Tel No: " & Session(“tel”) & “\</p\>”  
HTML = HTML & "\<p\>Visitor Address: " & Session(“address”) & “\</p\>”  
HTML = HTML & “\<p\>Interrested In: \<br\>” & Session(“partners”) & “\<br\>” & Session(“kids”) & “\<br\>” & Session(“music”) & “\<br\>” & Session(“theatre”) & “\<br\>” & Session(“dance”) & “\<br\>” & Session(“sats”) & “\</p\>”  
HTML = HTML & “\</body\>”

Set Mailer = Server.CreateObject(“SMTPsvg.Mailer”)

Mailer.FromName = “Pneumatix Server”  
Mailer.FromAddress = session(“email”)  
Mailer.RemoteHost = “196.25.120.48”  
Mailer.AddRecipient “info”, “[admin@pneumatix.co.za](mailto:admin@pneumatix.co.za)”  
Mailer.Subject = “Visitor Detail”  
Mailer.ReturnReceipt = false  
Mailer.ConfirmRead = false  
mailer.ContentType = “text/html”  
Mailer.BodyText = HTML  
Mailer.Priority = 0  
Mailer.Urgent = true  
Mailer.SendMail  
Mailer.ClearAllRecipients  
Mailer.ClearAttachments  
Mailer.ClearBCCs  
Mailer.ClearBodyText  
Mailer.ClearCCs  
Mailer.ClearExtraHeaders  
Mailer.ClearRecipients  
%\>  
\<!–webbot bot=“HTMLMarkup” endspan --\>  
\<table width=“645” height=“365” border=“0” cellpadding=“0” cellspacing=“0”\>  
\<tr\>  
\<td width=“645” height=“365” valign=“top”\>  
\<table border=“0” cellpadding=“0” cellspacing=“0” width=“645”\>  
\<tr\>  
\<td\>&nbsp;\</td\>  
\</tr\>  
\</table\>  
\<table border=“0” cellpadding=“0” cellspacing=“0” width=“645”\>  
\<tr\>  
\<td style=“font-size: 36pt; font-family: Arial; font-weight: bold; color: #FFFFFF” width=“100%” valign=“top”\>  
\<table border=“0” cellpadding=“0” cellspacing=“0” width=“100%”\>  
\<tr\>  
\<td width=“82%” valign=“top” align=“center”\> \<br\> \<div align=“left”\>  
\<table width=“95%” border=“0” align=“center” cellpadding=“2” cellspacing=“0”\>  
\<tr\>  
\<td width=“100%” style=“font-family: Arial; font-size: 12pt; font-weight: bold; color: #00FF00” align=“center”\>\<div align=“left”\>  
\<p\>The Following information has been sent to  
us.\<br\>  
\</p\>  
\<table width=“470” border=“0” align=“center”\>  
\<tr bgcolor="#CCCCCC"\>  
\<td width=“140”\>\<font color="#000000" size=“2” face=“Arial, Helvetica, sans-serif”\>Visitor  
Name:\</font\>\</td\>  
\<td width=“320”\>\<strong\>\<font color="#000000" size=“2” face=“Arial, Helvetica, sans-serif”\>  
\<%response.write session(“name”)  
%\>  
\</font\>\</strong\>\</td\>  
\</tr\>  
\<tr bgcolor="#CCCCCC"\>  
\<td\>\<font color="#000000" size=“2” face=“Arial, Helvetica, sans-serif”\>Visitor  
E-Mail:\</font\>\</td\>  
\<td\>\<strong\>\<font color="#000000" size=“2” face=“Arial, Helvetica, sans-serif”\>  
\<%response.write session(“email”)  
%\>  
\</font\>\</strong\>\</td\>  
\</tr\>  
\<tr bgcolor="#CCCCCC"\>  
\<td\>\<font color="#000000" size=“2” face=“Arial, Helvetica, sans-serif”\>Visitor  
Tel. No:\</font\>\</td\>  
\<td\>\<strong\>\<font color="#000000" size=“2” face=“Arial, Helvetica, sans-serif”\>  
\<%response.write session(“tel”)  
%\>  
\</font\>\</strong\>\</td\>  
\</tr\>  
\<tr bgcolor="#CCCCCC"\>  
\<td\>\<font color="#000000" size=“2”\>Physical  
Adress\</font\>\<font color="#000000" size=“2” face=“Arial, Helvetica, sans-serif”\>:\</font\>\</td\>  
\<td\>\<strong\>\<font color="#000000" size=“2” face=“Arial, Helvetica, sans-serif”\>  
\<%response.write session(“address”)  
%\>  
\</font\>\</strong\>\</td\>  
\</tr\>  
\<tr bgcolor="#CCCCCC"\>  
\<td valign=“top”\>\<font color="#000000" size=“2” face=“Arial, Helvetica, sans-serif”\>Info  
Required\<strong\>:\</strong\>\</font\>\</td\>  
\<td\>\<strong\>\<font color="#000000" size=“2” face=“Arial, Helvetica, sans-serif”\>  
\<%response.write session(“partners”)  
%\>  
\<br\>  
\<%response.write session(“kids”)  
%\>  
\<br\>  
\<%response.write session(“music”)  
%\>  
\<br\>  
\<%response.write session(“theatre”)  
%\>  
\<br\>  
\<%response.write session(“dance”)  
%\>  
\<br\>  
\<%response.write session(“sats”)  
%\>  
\</font\>\</strong\>\</td\>  
\</tr\>  
\</table\>  
\<p\>&nbsp;\</p\>  
\</div\>\</td\>  
\</tr\>  
\<tr\>  
\<td width=“100%” style=“font-family: Arial; font-size: 13pt; font-weight: bold; color: #C0C0C0” align=“center”\>\<font color="#FF0000" size=“3”\>LIFE  
ON THE CUTTING EDGE BEGINS AND ENDS WITH JESUS!\</font\>\</td\>  
\</tr\>  
\</table\>  
\</div\>\</td\>  
\</tr\>  
\</table\>\</td\>  
\</tr\>  
\</table\>

```
  &nbsp;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/td&gt;

```

\</tr\>\<!–msnavigation–\>\</table\>  
\</body\>

\</html\>

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 24, 2004, 5:29pm UTC](https://forum.kirupa.com/t/submit-form/61931/4 "2004-08-24T17:29:56Z")

</div>

I usually use CDONTS so I’m not enitirly sure why your code is not working. Check this out, I know this works

> **[Digitalosophy - By Yonit Tzuk](http://digitalosophy.com/?subaction=showfull&id=1091587831&archive=&start_from=&ucat=)**
>
> By Yonit Tzuk

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 25, 2004, 8:51am UTC](https://forum.kirupa.com/t/submit-form/61931/5 "2004-08-25T08:51:51Z")

</div>

Not sure how I can use that? :h: Or if it’s of any help? Sorry…?? Help?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 25, 2004, 3:42pm UTC](https://forum.kirupa.com/t/submit-form/61931/6 "2004-08-25T15:42:32Z")

</div>

> [@pucca](#):
>
> Not sure how I can use that? :h: Or if it’s of any help? Sorry…?? Help?

What do you mean :puzzled: , just change the variables. You wanted and ASP form mailer yes?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 25, 2004, 8:43pm UTC](https://forum.kirupa.com/t/submit-form/61931/7 "2004-08-25T20:43:48Z")

</div>

Ive been looking for this code for a while as it was part of a module at school i did and couldnt get working.

Anyways i just tried the above code from the zip file but get this message when i submit the form “METHOD NOT ALLOWED” - The requested method POST is not allowed for the URL /email-action.asp"

Any ideas why this is?

i uploaded it to my site to test at \<url\>[http://www.tribehut.com/MyForm.htm](http://www.tribehut.com/MyForm.htm)\</url\>

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 25, 2004, 10:35pm UTC](https://forum.kirupa.com/t/submit-form/61931/8 "2004-08-25T22:35:45Z")

</div>

> [@pucca](#):
>
> \<meta name=“GENERATOR” content=“Microsoft FrontPage 4.0”\>  
> \<meta name=“ProgId” content=“FrontPage.Editor.Document”\>

There’s the problem right there.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 26, 2004, 9:58am UTC](https://forum.kirupa.com/t/submit-form/61931/9 "2004-08-26T09:58:31Z")

</div>

thanks norie. must I delete it, or just change it?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 26, 2004, 3:22pm UTC](https://forum.kirupa.com/t/submit-form/61931/10 "2004-08-26T15:22:22Z")

</div>

oh, im sorry it was only a little jokie.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 26, 2004, 3:29pm UTC](https://forum.kirupa.com/t/submit-form/61931/11 "2004-08-26T15:29:02Z")

</div>

:lol:

Wussup Norie, how you been brova? 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 26, 2004, 4:05pm UTC](https://forum.kirupa.com/t/submit-form/61931/12 "2004-08-26T16:05:06Z")

</div>

Pretty good, getting really busy lately, but im starting to sneek some post in here and there. :beam:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 26, 2004, 6:10pm UTC](https://forum.kirupa.com/t/submit-form/61931/13 "2004-08-26T18:10:00Z")

</div>

ok, ditch your first example. digitals looks good and should be working.

what you want is the simple html page then submit that to your asp page which he supplied you with (the one with the code he’s showed on his page)

from there all you have to do is change the EmailFromAddress value. Don’t worry about displaying a message about the message being sent, just worry about getting the page working. If you can’t get it working then post your code here and I’m sure somebody can help (when I say code I mean your HTML & ASP pages)

there might be a problem with your webhost and CDONTS but I doubt it, for the moment lets say its a problem with your code

oh and most importantly…don’t panic or get stressed, what your asking isn’t complicated it’s just cause your new to it it seems difficult. Everybody starts as a beginner so don’t worry :thumb:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 27, 2004, 1:34pm UTC](https://forum.kirupa.com/t/submit-form/61931/14 "2004-08-27T13:34:25Z")

</div>

Thanks so much RabBell. Glad to see somebody understands!!:}

I’ll see if I can fix it, thanks again!!!:thumb:
