View Full Version : PHP functions
05-01-2009, 09:09 PM
why will this not work?
echo "THIS IS A TEST";
print "<input type='button' value='TEST' onclick='testing_function()'>";
05-01-2009, 09:19 PM
Php is parsed and executed on the web server at the time the page is requested. onclick events occur in the browser. You cannot "call" php functions from the browser. The browser can only make http requests to web servers (i.e. request pages through their URL.)
05-01-2009, 09:28 PM
05-01-2009, 09:57 PM
print "<input type='button' value='TEST' onclick='testing_function()';>";
05-02-2009, 03:45 AM
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.