Google Community
Latest Forums Rules Resources
Custom Search

Go Back   Google Community > Webmaster Forums > Web Design, Coding & Programming Forum

GoogleCommunity Sponsor
Cirtex Hosting
Use coupon "forum" for 50% Off!

Reply
 
LinkBack Thread Tools Display Modes
Old 09-06-2007, 07:47 AM   #1 (permalink)
Senior Googler
 
Join Date: Jul 2007
Posts: 125
Thanks: 0
Thanked 3 Times in 3 Posts
apg1985 is on a distinguished road
Someone please help, this code is killing me

Hello good people,

Im trying to make a simple form where you put in first name and last name and a button submits it to a email address. This is my first piece of ASP, ive spent 4 hours on it and it doesnt even work. I feel sick

Please help


<%
if Request.Querystring("isSubmitted") = "yes" then

Dim fname, lname
Dim objCDO

fname = Request.Querystring("First_Name")
lname = Request.Querystring("Last_Name")

Set objCDO = Server.CreateObject("CDONTS.NewMail")

objCDO.From = "john@hotmail.com"
objCDO.To = "john@hotmail.com"
objCDO.Cc = ""
objCDO.Bcc = ""
objCDO.Subject = "Submitted form data from my page"
objCDO.Body = "Name: " & fname & " " & lname

objCDO.BodyFormat = 1
objCDO.MailFormat = 1

objCDO.Send

ConfirmMsg = "Thanks for submitting your name!"

end if
%>
<html>
<head>
<title>ASP Form Sample</title>
</head>
<body>
<form action="formtest.asp" method="get" name="Input_Form">
First Name:
<input type="text" size="30"
maxlength="50" name="First_Name">
<br>
Last Name:
<input type="text" size="30"
maxlength="50" name="Last_Name">
<br>
<input type="submit" value="Submit Form">
</form>
</body>
</html>
</body>
</html>
apg1985 is offline   Reply With Quote
 
Sponsored Links
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is Google killing Microsoft? - PC Advisor News Alerts Google in the News 1 05-09-2007 04:42 AM
These code mean ...? tigerbin Web Design, Coding & Programming Forum 0 01-08-2007 03:15 PM
Is Google Adsense Killing Your Business? mr-seo All About Google 2 12-24-2005 01:02 AM
what php code would u use the most? pleasant Web Design, Coding & Programming Forum 7 08-23-2005 05:46 PM
Google Code: Summer of Code Randy Google and Open Source 6 06-04-2005 11:38 AM


All times are GMT -8. The time now is 02:56 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
© 2004–2007 Google Community