|
||||||||||
|
|||||||
| GoogleCommunity Sponsor |
Use coupon "forum" for 50% Off! |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Senior Googler
![]() Join Date: Jul 2007
Posts: 125
Thanks: 0
Thanked 3 Times in 3 Posts
![]() |
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> |
|
|
|
|
Sponsored Links
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |