Re: [PHP] Calling functions from Button actions

2003-09-13 Thread Marek Kilimajer
Example: form action=action.php input type=submit name=action1 value=Execute function action1() input type=submit name=action2 value=Execute function action2() /form action.php: function action1() { echo Hello, I'm action1; } function action2() { echo Hello, I'm action2; }

Re: [PHP] Calling functions from Button actions

2003-09-13 Thread daniel
wont they both be set ? i generally use a button type and onclick document.location.href to enforce an action in the get variable like something.php?action=something Example: form action=action.php input type=submit name=action1 value=Execute function action1() input type=submit name=action2

Re: [PHP] Calling functions from Button actions

2003-09-13 Thread John W. Holmes
[EMAIL PROTECTED] wrote: Dan J. Rychlik wrote: Is their an easy way to call a function based upon a button action? Example: form action=action.php input type=submit name=action1 value=Execute function action1() input type=submit name=action2 value=Execute function action2() /form action.php:

Re: [PHP] Calling functions from Button actions

2003-09-13 Thread daniel
apologies i generally use this system for deleting records, i give a confirm box if they press ok it goes to another action, i suppose i should change this system to submit the form instead and check for the post var ? i guess at least it could store the http_referer then :\ [EMAIL PROTECTED]

Re: [PHP] Calling functions from Button actions

2003-09-13 Thread John W. Holmes
[EMAIL PROTECTED] wrote: apologies i generally use this system for deleting records, i give a confirm box if they press ok it goes to another action, i suppose i should change this system to submit the form instead and check for the post var ? i guess at least it could store the http_referer then

Re: [PHP] Calling functions from Button actions

2003-09-13 Thread daniel
my form action usually looks like this some.php?action=updateID=1 my update will look like update table set *** where _rowid=$_GET['ID'] so therefore its globally used. i'd use the id from the get var but i guess in the delete function i could place this within the update action so case

[PHP] Calling functions from Button actions

2003-09-12 Thread Dan J. Rychlik
Is their an easy way to call a function based upon a button action? -Dan

Re: [PHP] Calling functions from Button actions

2003-09-12 Thread Robert Cummings
Any form system (I'm guessing, but I only use my own so I could be mistaken) that allows custom validation should enable trivial function calling based on a button click. Cheers, Rob. On Fri, 2003-09-12 at 18:29, Dan J. Rychlik wrote: Is their an easy way to call a function based upon a button

RE: [PHP] Calling functions from Button actions

2003-09-12 Thread Vail, Warren
-Original Message- From: Robert Cummings [mailto:[EMAIL PROTECTED] Sent: Friday, September 12, 2003 3:36 PM To: Dan J. Rychlik Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Calling functions from Button actions Any form system (I'm guessing, but I only use my own so I could be mistaken) that allows