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 form. What

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 code

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 clicked the

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 present,

[PHP] Trap CR or Enter possible?

2002-03-21 Thread Andre Dubuc
In one of my php pages, I have a form that requires the user to click Search for Surname. If however they press Enter, undesirable effects occur. I've successfully trapped if an empty string is in the input type=text, but Enter eludes my efforts to trap it for an appropriate Educational

RE: [PHP] Trap CR or Enter possible?

2002-03-21 Thread Martin Towell
[mailto:[EMAIL PROTECTED]] Sent: Friday, March 22, 2002 1:39 PM To: [EMAIL PROTECTED] Subject: [PHP] Trap CR or Enter possible? In one of my php pages, I have a form that requires the user to click Search for Surname. If however they press Enter, undesirable effects occur. I've successfully

Re: [PHP] Trap CR or Enter possible?

2002-03-21 Thread Andre Dubuc
PROTECTED] Subject: [PHP] Trap CR or Enter possible? In one of my php pages, I have a form that requires the user to click Search for Surname. If however they press Enter, undesirable effects occur. I've successfully trapped if an empty string is in the input type=text, but Enter

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 which