bgreenhouse
Technical User
Hi Folks
I'm trying to break up an email address into the part before the @, and the part after (the domain). I capture the email address with a form, and then input it into the variable "email" with request.form("". However, when I then try to define a new variable called "emailsplit" as being equal to 'email.split("@"', I get this error:
Error Type:
Microsoft VBScript runtime (0x800A01A8)
Object required: 'b.greenhouse@utoront'
/asp/get_a_card_process.asp, line 27
Here's the portion of the script in it's entirety:
Dim Fname, Lname, Address1, Address2, City, Province, Country, PCode, Phone1, Phone2, Phone3, Extension, Bday, email, PIN, PIN2, secretQ, Qanswer, PhoneLoc, emailSplit
Fname = Request.form("Fname"
Lname = Request.form("Lname"
Address1 = Request.form("Address1"
Address2 = Request.form("Apt"
Address2 = Address2 & Request.form("Address2"
City = Request.form("City"
Province = Request.form("Province"
Country = Request.form("Country"
PCode = Request.form("PCode"
Phone1 = Request.form("Phone1"
Phone2 = Request.form("Phone2"
Phone3 = Request.form("Phone3"
PhoneLoc = Request.form("PhoneLoc"
Extension = Request.form("extension"
Bday = Request.form("Day"
Bday = Bday & "/" & Request.form("Month"
Bday = Bday & "/" & Request.form("Year"
''********HERE IT IS!*********
email = Request.form("email"
emailsplit = email.split("@"
PIN = Request.form("PIN"
PIN2 = Request.form("PIN2"
secretQ = Request.form("secretQ"
Qanswer = Request.form("answer"
%>
Any suggestions would help...
Ben
I'm trying to break up an email address into the part before the @, and the part after (the domain). I capture the email address with a form, and then input it into the variable "email" with request.form("". However, when I then try to define a new variable called "emailsplit" as being equal to 'email.split("@"', I get this error:
Error Type:
Microsoft VBScript runtime (0x800A01A8)
Object required: 'b.greenhouse@utoront'
/asp/get_a_card_process.asp, line 27
Here's the portion of the script in it's entirety:
Dim Fname, Lname, Address1, Address2, City, Province, Country, PCode, Phone1, Phone2, Phone3, Extension, Bday, email, PIN, PIN2, secretQ, Qanswer, PhoneLoc, emailSplit
Fname = Request.form("Fname"
Lname = Request.form("Lname"
Address1 = Request.form("Address1"
Address2 = Request.form("Apt"
Address2 = Address2 & Request.form("Address2"
City = Request.form("City"
Province = Request.form("Province"
Country = Request.form("Country"
PCode = Request.form("PCode"
Phone1 = Request.form("Phone1"
Phone2 = Request.form("Phone2"
Phone3 = Request.form("Phone3"
PhoneLoc = Request.form("PhoneLoc"
Extension = Request.form("extension"
Bday = Request.form("Day"
Bday = Bday & "/" & Request.form("Month"
Bday = Bday & "/" & Request.form("Year"
''********HERE IT IS!*********
email = Request.form("email"
emailsplit = email.split("@"
PIN = Request.form("PIN"
PIN2 = Request.form("PIN2"
secretQ = Request.form("secretQ"
Qanswer = Request.form("answer"
%>
Any suggestions would help...
Ben