catalyst2 community forums  

Go Back   catalyst2 community forums > Support > Scripting Support

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old 17-01-2008, 05:34 PM   #1 (permalink)
kat
Ickle One
 
Join Date: Oct 2003
Location: north lincolnshire
Posts: 67
microsoft run time error

I have a contact form on a website which has been working fine (as far as I know). I have been contacted by the client who tells me that they have had a couple of reports in the last few days to say that the form is not working. I tested it and after hitting the send button got the following error...

Microsoft VBScript runtime error '800a0009'

Subscript out of range: '[number: 1]'

/cgi-bin/aspmailer.asp, line 164

The form and mailer.asp appear to be set up as I normally set them up so I'm not sure whats happened. Anyone got any ideas?

Kate
(Will also post a ticket)
kat is offline   Reply With Quote
Old 18-01-2008, 01:19 PM   #2 (permalink)
Administrator
 
WhiskyFudge's Avatar
 
Join Date: Oct 2003
Posts: 1,484
What is on line 164?
__________________
Jason Robbins
jason@catalyst2.com
WhiskyFudge is offline   Reply With Quote
Old 18-01-2008, 08:54 PM   #3 (permalink)
kat
Ickle One
 
Join Date: Oct 2003
Location: north lincolnshire
Posts: 67
Here you go...

152> if query2(0) = "email" then
153> trim(query2(0))
154> if len(query2(1))<8 then
155> response.Write("You must specify a valid ") & query2(0)
156> response.end
157> end if
158> if instr(query2(1),"@")=0 and instr(query2(1),".")=0 then
159> response.write query2(1)
160> response.Write("You must specify a valid ") & query2(0)
161> response.end
162> end if
163> strEmail1 = split(query2(1),"@")
164> if len(strEmail1(1))<3 then
165> response.Write("You must specify a valid ") & query2(0)
166> response.end
167> end if
168> strEmail2 = split(strEmail1(1),".")
169> if len(strEmail2(0))<3 then
170> response.Write("You must specify a valid ") & query2(0)
171> response.end
172> end if
173> if len(strEmail2(1))<2 then
174> response.Write("You must specify a valid ") & query2(0)
175> response.end
176> end if
177> end if

Hope that helps!
kat is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 01:42 PM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.