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 |
| [EMAIL PROTECTED]     403-291-2770, 403-259-6795 (fax)            |
\====================================================================/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to