Is there a way to remove the empty cells from an array...

when i display my array like this:

sNums = split(sNums,",")


then each text box contains the array indexes like this:

<input name=text1 id=text1 value="sNums(0)">
<input name=text2 id=text2 value="sNums(1)">