RE: [?] Call a function with a button/link click?

From: Date: Wed, 14 Mar 2001 08:49:47 +0000
Subject: RE: [?] Call a function with a button/link click?
Groups: php.general 
Request: Send a blank email to php-general+get-43796@lists.php.net to get a copy of this message
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:jvoth@mobiltex.com] > Sent: 13 March 2001 18:23 > To: php-general@lists.php.net > 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 | > | jvoth@mobiltex.com 403-291-2770, 403-259-6795 (fax) | > \====================================================================/ >

« previous php.general (#43796) next »