| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I am getting an error on the Internet Explorer status bar (little yellow ! followed by message "Error on Page") when i try click submit on this page. Here is the code:
<%@ Language=VBScript %> <HTML> <BODY> <form name="Entry"> <table> <tr> <td> <input class=butn type="submit" value="Submit" onclick="getEmail()" id="btnSubmit" name="btnSubmit"></input> </td> </tr> </table> <script language="VBscript"> 'Start VBScript Function getEmail() Dim Inputemail Dim objMail2 Inputemail = InputBox("Please Input your email") Set objMail2 = Server.CreateObject("CDONTS.NewMail") objMail2.From = "techsupport@arms.com" objMail2.Subject = "A customer has signed up for an AOA class" objMail2.To = Inputemail objMail2.Body = "You have a new student signed up in the following AOA class:" objMail2.Send Set objMail = Nothing End Function </script> </form> </BODY> </HTML> What I am trying to do is get an email from someone who signs up for an online class by calling the email function when they click submit. It looks simple, but obviously i cant figure this one out...Please help! Thanks for your time... woohouz ![]() |
|
#2
|
||||
|
||||
|
You're combining client and server side stuff.
SERVER.createobject() should be run on the server ![]() |
|
#3
|
|||
|
|||
|
Thanks man, i got it figured out.
-woohouz- |
![]() |
| Viewing: ASP Free Forums > Programming > Code Bank > Getting IE error when trying to use CDONTS email function & inputbox |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|