RE: [PHP] Function call from a hyperlink

From: Date: Wed, 11 Jul 2001 17:20:56 +0000
Subject: RE: [PHP] Function call from a hyperlink
Groups: php.general 
Request: Send a blank email to php-general+get-57437@lists.php.net to get a copy of this message
another way is to do eval () on $function but that kinda stuff is really bad for security. Also bad to get carried away with making one file that passes tons of different function names so your whole website's in one file :) There should be some criminal punishment for doing that. -----Original Message----- From: Shrout, Ryan [mailto:Rshrout@krauss-maffeicorp.com] Sent: Wednesday, July 11, 2001 10:16 AM To: 'Geer'; php-general@lists.php.net Subject: RE: [PHP] Function call from a hyperlink Why not just pass a variable: <a href="file.php?function"> and then in the PHP file do: if ($function) { function(); } Ryan Shrout Amdmb.com -----Original Message----- From: Geer [mailto:mail@geer.tmfweb.nl] Sent: Wednesday, July 11, 2001 1:17 PM To: php-general@lists.php.net Subject: [PHP] Function call from a hyperlink Hi, Does someone know how I can call a function in a PHP script using a hyperlink with <A HREF=.....>text</A> The function is in the same PHP script as the link. Many thanks, Geer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#57437) next »