See this: I had a problem where I wanted to parameterize a callback. with functions such as call_user_func() and call_user_func_array() will not be
Try hard-refreshing this page to fix the error. Calls the callback given by the first parameter and passes Here take my hand and let me bring you in the good part of the board ... http://www.phpfreaks.com/forums/index.php/board,6.0.html. THe application works when i use the link but it is also calling he function when i load the page with a list of these links. It's not possible to call a PHP-Function with onclick (directly) without reloading/loading the page. You use this model whenever you want the user's click on their client machine to invoke some PHP action on the web server, not on the client's machine itself. For example, if you want the user to be able to add items to a database on the web server, you would do it this way: Create two files: The first one (let's call it page1.html) is pure HTML like this: