in reply to Re^4: CGI button -onClick not working
in thread CGI button -onClick not working

Yeah, I know that perl doesn't run in the browser. But the point is, I want to run a function when I click the button. How to do that??

Asked and answered :)

You've decided on onclick, and onclick is javascript, ie , in the browser only

Your options are 1) submit a form like keszler showed or 2) use javascript to make a http request like perlig showed

Is that clearer?