I don't know if this an appropriate question for this group so please, if
its misplaced, forgive me.
I need to figure out how to grab the value to the right of the "=" sign in a
form element string.
The scenario is that I have dynamically assigned form name so I can't call
it by name. I do know that its always the third element and I have been
able to split the form collection array and get the third element so now I
have things like
PRODUCT_ID2323=F440605
or,
PRODUCT_ID90685=B405506
Both name and the value will have varying lengths but if I can figure out
how to grab everything right of the"=" then I'll be home free. Here's what
I've got so far:
FrmArray = Request.form
FrmElmt = Split(FrmArray,"&",-1,1)
PrdID = (ubound(FrmElmt)-3) *** This successfully getting the correct
element***
If InStr((FrmElmt(PrdID)), "=")>0 Then
PRD_ID = Right((FrmElmt(PrdID)), InStr((FrmElmt(PrdID)), "=") - 3)
'PRD_ID = Right((FrmElmt(PrdID, "=") + 1)
response.write PRD_ID
This last part is obviously not right. I just don't understand string
manipulation well enough to figure out the correct syntax.
--
Bob LaGarde
LaGarde, Incorporated
Business Applications for the Internet
www.lagarde.com
__________________________________________
Custom Internet Oriented Software Development
Commercial Web Hosting Services
__________________________________________