Jeroen,

Well, there are probaly a few different ways to do this, but it really helps if one adds a "sentinal" to the end of the list ... helps with parsing quite a bit, here's an example:

code:

break on


$names="Name1,Name2,Name3"


$names = $names + ","


while instr($names,",")


$name = substr($names,1,instr($names,",")-1)


? 'NET SEND $NAME "HI THERE!"' ; fake a message


$names = substr($names,instr($names,",")+1,len($names))


loop


exit


-Shawn