RE: [PHP] Function call from a hyperlink
| From: | scott [gts] | Date: | Wed, 11 Jul 2001 17:23:44 +0000 |
| Subject: | RE: [PHP] Function call from a hyperlink | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-57445@lists.php.net to get a copy of this message | ||
i agree that putting it all into one file is
usually bad form, but for small sites that dont
change much, it's usually OK to do something like:
file.php?page=Main
file.php?page=News
file.php?page=Contact
anything above 5-10 pages probably requires a
separate-page-per-section or fusebox-style design...
> -----Original Message-----
> From: Chadwick, Russell [mailto:rchadwick@miva.com]
> Sent: Wednesday, July 11, 2001 1:21 PM
> To: 'php-general@lists.php.net'
> Subject: RE: [PHP] Function call from a hyperlink
>
>
>
> 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
>
> --
> 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
>