Re: [PHP] Calling functions from Button actions

2003-09-13 Thread daniel
my form action usually looks like this some.php?action=update&ID=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 'upda

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
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] wr

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: >> >> >> >> >> >> >>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: > > > > > > > action.php: > function action1() { > echo "Hello, I'm action1"; > } > > > function action2() { >

Re: [PHP] Calling functions from Button actions

2003-09-13 Thread Marek Kilimajer
Example: action.php: function action1() { echo "Hello, I'm action1"; } function action2() { echo "Hello, I'm action2"; } if(isset($_GET['action1'])) { action1(); } if(isset($_GET['action2'])) { action2(); } Dan J. Rychlik wrote: Is their an easy way to call a fu

RE: [PHP] Calling functions from Button actions

2003-09-12 Thread Vail, Warren
this helps, Warren Vail -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 ow

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