Triggering a function with a URL

Basically, you don't. Requesting variables is a GET request, which is what your browser does. Calling a function is a POST request, which your browser doesn't do.
Some more threads on this (the search function does wonders ;)):

Some discussion about why calling a function from the browser doesn't work/isn't supposed to work:

A great tutorial on how to call functions from a website:

1 Like