| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Microsoft VBScript compilation error '800a03f6'
I dont get it, every time i try to run my page i get this error and it doesn't make sense because i do end my if
so whats my problem? heres the code: <% @language = "VBScript" %><% option explicit %> <html> <head> <title>Send me a TxT MsG Bizotch!</title> <link rel="stylesheet" type="text/css" href="email.css" /> <script src="txtcounter.js"></script> </head> <body> <% Dim from, talk, myMail Set myMail=CreateObject("CDO.Message") 'myMail.Subject="Sending email with CDO" myMail.From=Request.Form("From") myMail.To="##########@vmobl.com" myMail.TextBody=Request.Form("Talk") %> <% function send() myMail.Send %> <form action="email.asp" method="post"> <table width="66%" cellpadding="0" cellspacing="0" border="1" bordercolor="#3300FF" bordercolorlight="#0000FF" bordercolordark="#000099"> <tr> <td> Name Plz: </td> <td> <input type="text" name="from" maxlength="28" size="30" /> </td> </tr> <tr> <td> Talk to me: </td> <td> <input type="text" name="talk" cols="25" rows="5" maxlength="125" style="width: 275px;" /> </td> </tr> <tr> <td colspan="2"> <center> <input type="submit" value="Send it on" onclick="send()" /> </center> </td> </tr> </table> </form> <br /><hr /><br /> <% If Request.Form("from") <> "" Then Response.Write "message sent, nice doin business w/ya "Else Response.Write "Please put in a name." End if If Request.Form("talk") <> "" Then Response.Write "" Else Response.Write "Please put insert a message." End if %> </body> </html> thanks in advance |
|
#2
|
||||
|
||||
|
There are several things wrong:
- you're trying to call a serverside function (send) through the client - your function send() isn't ended with 'end function' A possible solution is to request() if the submit button has been pressed and then you can email. Forget the send() function... |
![]() |
| Viewing: ASP Free Forums > Programming > Code Bank > Microsoft VBScript compilation error '800a03f6' |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|