You must specify the number of disks (maximum 4) as an appropriate integer argument, for example: http://www.kernelthread.com/hanoi/src/hanoimania/hanoi.php?N where 1 <= N <= 4