Click to See Complete Forum and Search --> : New to the land of ASP


clyde
07-08-2003, 11:45 AM
I am Trying to Launch a service on the net where I need to get credit card authorization.

The part of sending credit card authorization and the md5 hash finger print I have have conquered.

the card authorizing agent says it will send me a response back of data , delimited by commas and all I need is to have a simple script to trap the comma delimited data.

I have no clue where to start can anybody hel me.

desperate
clyde
Thanks

Asim
07-18-2003, 03:04 AM
Hi
I dont know waht u want to do with ur data afterwards
But here is a script

str=My,Name,is,Asim

Dim pos
pos=1
while pos>0
pos=instr(1, str, ",")
if pos=0 then
x=str 'to check for string comtains only single word
else
x=mid(str,1,pos-1) ' to pick the part from string before comma
' to trancuate the leftover part of string to run the loop again
str=mid(str,pos+1,len(str))

End if
Wend