Re: [PHP] Trap CR or "Enter" possible?

2002-03-23 Thread Miguel Cruz
On Fri, 22 Mar 2002, Erik Price wrote: > I have noticed that pressing enter in IE does achieve the same effect as > pressing the "submit" button for my forms. But I have also heard that > it's not really "the same", especially if there are more than one > "submit"-style inputs for the given fo

Re: [PHP] Trap CR or "Enter" possible?

2002-03-22 Thread Don Read
On 22-Mar-2002 Erik Price wrote: > > On Friday, March 22, 2002, at 12:29 PM, Jason Wong wrote: > >>> Side note to the original poster: in the script that is the target of >>> the form you are writing, you may be able to test for the presence of >>> the "submit" variable -- if this value is not

Re: [PHP] Trap CR or "Enter" possible?

2002-03-22 Thread Erik Price
On Friday, March 22, 2002, at 12:29 PM, Jason Wong wrote: >> Side note to the original poster: in the script that is the target of >> the form you are writing, you may be able to test for the presence of >> the "submit" variable -- if this value is not present, then the user >> has >> not clic

Re: [PHP] Trap CR or "Enter" possible?

2002-03-22 Thread Erik Price
On Friday, March 22, 2002, at 12:11 AM, Jason Wong wrote: > But, what are the undesirable effects of just pressing enter? I know > that in > IE pressing enter to submit a form is not the same as clicking on the > submit > button. If that is what you are referring to then it's very easy to cod

Re: [PHP] Trap CR or "Enter" possible?

2002-03-21 Thread Jason Wong
On Friday 22 March 2002 10:52, Andre Dubuc wrote: > Thanks Martin, > > I forgot to mention: I would like to accomplish this using PHP since I'm > not using Javascript. Will this still work with straight html? You can't have your cake and eat it :) What you require can only be done client-side wh

Re: [PHP] Trap CR or "Enter" possible?

2002-03-21 Thread Andre Dubuc
Thanks Martin, I forgot to mention: I would like to accomplish this using PHP since I'm not using Javascript. Will this still work with straight html? regards, Andre On Thursday 21 March 2002 21:39, you wrote: > do it in html/javascript like this: > > http://www.somewhere.com/"; method="get"

RE: [PHP] Trap CR or "Enter" possible?

2002-03-21 Thread Martin Towell
do it in html/javascript like this: http://www.somewhere.com/"; method="get" onSubmit="return (this.okay.value != 'no');"> -Original Message- From: Andre Dubuc [mailto:[EMAIL PROTECTED]] Sent: Friday, March 22, 2002 1:39 PM To: [EMAIL PROTECTED] Subject: [PHP] Trap CR or "Enter