php works server side. you cannot get user to run anything in php without
resubmitting (posting or whatever) ... you need javascript if this is
something you can do client-side, if not you'll have to live with some sort
of resubmit.

        Tim Ward
        Senior Systems Engineer

Please refer to the following disclaimer in respect of this message:
http://www.stivesdirect.com/e-mail-disclaimer.html


> -----Original Message-----
> From: John Voth [mailto:[EMAIL PROTECTED]]
> Sent: 13 March 2001 18:23
> To: [EMAIL PROTECTED]
> Subject: [?] Call a function with a button/link click?
> 
> 
> 
> 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