Re: Re[2]: [PHP] Re: Form Submission

2004-07-07 Thread Torsten Roehr
"Justin Patrin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Wed, 7 Jul 2004 10:06:25 +0200, Torsten Roehr <[EMAIL PROTECTED]> wrote: > > "Curt Zirzow" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > > > * Thus wrote Torsten Roehr: > > > > > > > > > > > > How d

Re: Re[2]: [PHP] Re: Form Submission

2004-07-07 Thread Justin Patrin
On Wed, 7 Jul 2004 10:06:25 +0200, Torsten Roehr <[EMAIL PROTECTED]> wrote: > "Curt Zirzow" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > * Thus wrote Torsten Roehr: > > > > > > > > > > How do you check which button was pressed (read: which action should > be > > > > > performed

Re: Re[2]: [PHP] Re: Form Submission

2004-07-07 Thread Torsten Roehr
"Curt Zirzow" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > * Thus wrote Torsten Roehr: > > "Curt Zirzow" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > > > * Thus wrote Torsten Roehr: > > > > > > And if it did, which one does it send? If there are multiple > > >

Re: Re[2]: [PHP] Re: Form Submission

2004-07-07 Thread Curt Zirzow
* Thus wrote Torsten Roehr: > "Curt Zirzow" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > * Thus wrote Torsten Roehr: > > > > And if it did, which one does it send? If there are multiple > > buttons on a page, does it send the one closest to the focused > > item? or does it sen

Re: Re[2]: [PHP] Re: Form Submission

2004-07-07 Thread Torsten Roehr
"Curt Zirzow" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > * Thus wrote Torsten Roehr: > > > > > > > > How do you check which button was pressed (read: which action should be > > > > performed) when not relying on this? > > > > > > > > > > The button is generally *not* sent by the

Re: Re[2]: [PHP] Re: Form Submission

2004-07-06 Thread Curt Zirzow
* Thus wrote Torsten Roehr: > > > > > > How do you check which button was pressed (read: which action should be > > > performed) when not relying on this? > > > > > > > The button is generally *not* sent by the browser if you hit enter > > instead of submit. This *will* happen, so you have to deal

Re: Re[2]: [PHP] Re: Form Submission

2004-07-06 Thread Justin Patrin
On Tue, 6 Jul 2004 21:19:35 +0200, Torsten Roehr <[EMAIL PROTECTED]> wrote: > "Justin Patrin" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > On Tue, 6 Jul 2004 18:15:17 +0200, Torsten Roehr <[EMAIL PROTECTED]> > wrote: > > > "Richard Davey" <[EMAIL PROTECTED]> wrote in message >

Re: Re[2]: [PHP] Re: Form Submission

2004-07-06 Thread Torsten Roehr
"Justin Patrin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Tue, 6 Jul 2004 18:15:17 +0200, Torsten Roehr <[EMAIL PROTECTED]> wrote: > > "Richard Davey" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > > > Hello Jason, > > > > > > Tuesday, July 6, 2004, 2:37:08

Re: Re[2]: [PHP] Re: Form Submission

2004-07-06 Thread Justin Patrin
On Tue, 6 Jul 2004 18:15:17 +0200, Torsten Roehr <[EMAIL PROTECTED]> wrote: > "Richard Davey" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Hello Jason, > > > > Tuesday, July 6, 2004, 2:37:08 PM, you wrote: > > > > JW> It might not be a good idea to rely on the "submit" button t

Re: Re[2]: [PHP] Re: Form Submission

2004-07-06 Thread Torsten Roehr
"Richard Davey" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello Jason, > > Tuesday, July 6, 2004, 2:37:08 PM, you wrote: > > JW> It might not be a good idea to rely on the "submit" button to be set. Some > JW> browsers do not set/send it if you didn't explicitly click on the "su

Re[2]: [PHP] Re: Form Submission

2004-07-06 Thread Richard Davey
Hello Jason, Tuesday, July 6, 2004, 2:37:08 PM, you wrote: JW> It might not be a good idea to rely on the "submit" button to be set. Some JW> browsers do not set/send it if you didn't explicitly click on the "submit" JW> button. I would use: Absolutely. If you hit ENTER to submit a form (rather

Re: [PHP] Re: Form Submission

2004-07-06 Thread Torsten Roehr
"Jason Wong" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Tuesday 06 July 2004 17:50, Torsten Roehr wrote: > > > > How can I check if a form has been submitted, I have seen a demo that > > > uses the following: > > > > > > if(isset($HTTP_POST_VARS)) > > > > > > But I understand

Re: [PHP] Re: Form Submission

2004-07-06 Thread Jason Wong
On Tuesday 06 July 2004 17:50, Torsten Roehr wrote: > > How can I check if a form has been submitted, I have seen a demo that > > uses the following: > > > > if(isset($HTTP_POST_VARS)) > > > > But I understand that $HTTP_POST_VARS is depricated... > > > > Thanks for your help > > Check the $_POST

[PHP] Re: Form Submission

2004-07-06 Thread Torsten Roehr
"Shaun" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > How can I check if a form has been submitted, I have seen a demo that uses > the following: > > if(isset($HTTP_POST_VARS)) > > But I understand that $HTTP_POST_VARS is depricated... > > Thanks for your help Check the $_P

Re: [PHP] Re: form submission logic

2004-05-10 Thread Torsten Roehr
>"Jay Blanchard" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >[snip] >This is more of a HTML than a PHP question, but anyway: >It doesn't matter where you put the buttons as long as they are INSIDE >the >form-tag and have different names. >[/snip] > >Actually you can name them all t

RE: [PHP] Re: form submission logic

2004-05-10 Thread Jay Blanchard
[snip] This is more of a HTML than a PHP question, but anyway: It doesn't matter where you put the buttons as long as they are INSIDE the form-tag and have different names. [/snip] Actually you can name them all the same thing and then have PHP process the form via a switch/case statment. http

[PHP] Re: form submission logic

2004-05-07 Thread Torsten Roehr
"Kim Steinhaug" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I dont agree however, if your creating a system which should be > user friendly I would absolutely demand from my users to have JS > enabled. This is only possible in a non-public application. > > If they dont have JS e

[PHP] Re: form submission logic

2004-05-07 Thread Kim Steinhaug
I dont agree however, if your creating a system which should be user friendly I would absolutely demand from my users to have JS enabled. If they dont have JS enabled, then -> well, to bad for them... We have created several web applications and have alot of customers (B2B), and they have all JS

[PHP] Re: form submission logic

2004-05-07 Thread Torsten Roehr
"Kim Steinhaug" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Well, > > I would include another hidden field and name it something like "ACTION". > I would also include a checkbox on every item you want to do something with > like this : > > > > Then use javascript on your actions

[PHP] Re: form submission logic

2004-05-07 Thread Kim Steinhaug
Well, I would include another hidden field and name it something like "ACTION". I would also include a checkbox on every item you want to do something with like this : Then use javascript on your actions to set the action to whatever mode you need, for example "delete". On the PHP side you get

Re: [PHP] Re: form submission logic

2004-05-07 Thread Torsten Roehr
"Adam Voigt" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Fri, 2004-05-07 at 13:47, Torsten Roehr wrote: > > > > This is more of a HTML than a PHP question, but anyway: > > It doesn't matter where you put the buttons as long as they are INSIDE the > > form-tag and have different

Re: [PHP] Re: form submission logic

2004-05-07 Thread Adam Voigt
On Fri, 2004-05-07 at 13:47, Torsten Roehr wrote: > > This is more of a HTML than a PHP question, but anyway: > It doesn't matter where you put the buttons as long as they are INSIDE the > form-tag and have different names. > Actually you don't even have to have names for the buttons, for exampl

[PHP] Re: form submission logic

2004-05-07 Thread Torsten Roehr
"Aaron Wolski" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi all, > > Was wondering if someone had any idea's on this logic and if it'd work, > before I tried to implement it: > > Within the tags I have my buttons - Publish, Unpublish, > New, Edit and Delete. > > Next I have a t

Re: [PHP] Re: form submission error trapping

2002-02-25 Thread Stewart G.
You do not need to use javascript. Simple create a form that submits to itself. And check the values, then reprint the form or redirect. Example: \n"; } } if (!empty($err_msg)) print $err_msg; } ?> Hope that helps, -- Stewart On Mon, 18 Feb 2002, George Whiffen wrote: > Jason

[PHP] Re: form submission error trapping

2002-02-25 Thread George Whiffen
Jason, You didn't mention Javascript checks. Personally I really dislike having to wati for a page to reload before finding out that I've just failed to fill in a field. The Javascript to do basic on-page checks is all pretty simple stuff. Of course this doesn't mean we can skip checking the d