RE: [PHP] calling functions in classes using text and graphic links

From: Date: Wed, 25 Jun 2003 07:05:33 +0000
Subject: RE: [PHP] calling functions in classes using text and graphic links
Groups: php.general 
Request: Send a blank email to php-general+get-152718@lists.php.net to get a copy of this message
Hello What you are asking isn't possible that way. You have to write a controller script that calls the appropriate functions on your object. Example: controller.php is the controller script A link on your page: <a href="controller.php?action=someAction">Some Action</a> In controller.php you do something like: <?php if(isset($_POST['action'])) { switch $_POST['action'] { case 'someAction': //Do what ever you need to break; ... } } .... ?> You might also want to look into url rewriting for building searchengine friendly urls. Regards Stefan Langer

« previous php.general (#152718) next »