![]() |
|
|
#1 (permalink) |
|
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) |
|
|
|
|
|
#3 (permalink) |
|
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! |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|