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