in reply to Re: How do you run a subroutine from inside HTML code?
in thread How do you run a subroutine from inside HTML code?

and I had to remove the & from $index so instead of $index = &login it is now $index = login

Please always use strict; in your code.