[?] Call a function with a button/link click?
| From: | John Voth | Date: | Tue, 13 Mar 2001 18:22:33 +0000 |
| Subject: | [?] Call a function with a button/link click? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-43696@lists.php.net to get a copy of this message | ||
I am wondering how to call a function simply by clicking a button
or a hyperlink?
I would like to use this technique to avoid passing things in a link
Presently, I use this technique:
<a href="../php/delete_something.php?tid=$thing_id">Delete</a>
I would like to clean things up by having one central or common include
file and just call functions out of it. The problem lies in the passing
of variables to that function - how to set something up so that the user
can click on something to activate that function with a variable.
Psuedocode:
if( buttonclick )
delete_thing($thing_id)
Am I making sense?
Thanks in advance.
John
--
/====================================================================\
| John Voth Mobiltex Data Ltd.Calgary, Alberta,Canada, T1Y-4T7 |
| jvoth@mobiltex.com 403-291-2770, 403-259-6795 (fax) |
\====================================================================/