It looks like an email address is supposed to be in query2(1). The 'split' command attempts to split the value in query2(1) into an array using '@' as the the separator character.

The error is occurring because the value in query2(1) does not have a '@' in it so strEmail1(0) is equal to query2(1) and there is no strEmail1(1). Because there is no strEmail1(1) you get the subscript out of range.

That's all I can tell from this script segment.

Portman wrote:
Hi all,

I am working on an ASP form script - I don't know ASP - and I keep getting the following error:

Microsoft VBScript runtime error '800a0009'

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

/formail.asp, line 164

Lines 160 - 170 are:
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)

Any help would be much appreciated.

Thanks,
Riva



____ • The WDVL Discussion List from WDVL.COM • ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] or use the web interface http://e-newsletters.internet.com/discussionlists.html/
      Send Your Posts To: [email protected]
To change subscription settings, add a password or view the web interface:
http://intm-dl.sparklist.com/read/?forum=wdvltalk

________________  http://www.wdvl.com  _______________________

You are currently subscribed to wdvltalk as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
To unsubscribe via postal mail, please contact us at:
Jupitermedia Corp.
Attn: Discussion List Management
475 Park Avenue South
New York, NY 10016

Please include the email address which you have been contacted with.



____ • The WDVL Discussion List from WDVL.COM • ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] or
use the web interface http://e-newsletters.internet.com/discussionlists.html/
      Send Your Posts To: [email protected]
To change subscription settings, add a password or view the web interface:
http://intm-dl.sparklist.com/read/?forum=wdvltalk

________________  http://www.wdvl.com  _______________________

You are currently subscribed to wdvltalk as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
To unsubscribe via postal mail, please contact us at:
Jupitermedia Corp.
Attn: Discussion List Management
475 Park Avenue South
New York, NY 10016

Please include the email address which you have been contacted with.

Reply via email to