Speedy84 Posted November 3, 2008 Share Posted November 3, 2008 is there a way to activate a function by using "onclick" or "onchange" in a dropdown menu? something like this <option onclick="<?php function(); ?>">Text</option> Link to comment https://forums.phpfreaks.com/topic/131161-activate-function-in-how/ Share on other sites More sharing options...
Adam Posted November 3, 2008 Share Posted November 3, 2008 PHP is parsed before the server loads.. So calling functions on events like that is impossible without using JavaScript and AJAX to create a 'http request'. Google ajax for more info! Adam Link to comment https://forums.phpfreaks.com/topic/131161-activate-function-in-how/#findComment-680998 Share on other sites More sharing options...
Adam Posted November 3, 2008 Share Posted November 3, 2008 PHP is parsed on the server before the web page loads ** Link to comment https://forums.phpfreaks.com/topic/131161-activate-function-in-how/#findComment-681004 Share on other sites More sharing options...
Speedy84 Posted November 3, 2008 Author Share Posted November 3, 2008 thanks adios.. got some reading to do Link to comment https://forums.phpfreaks.com/topic/131161-activate-function-in-how/#findComment-681008 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.