in reply to Using the param function

Each request results in the script being executed from scratch, so getdo will always return zero. I suggested using a param, not a variable. Please head that advice.