<input type="submit"> is associated with the return key. Period. try <input
type="button"> instead. If you want the look and feel of default use style
sheets (IE only) or gifs with <button></button> etc.
There may be a method to know if enter was pressed and stop form submission,
but I suspect it will only work in IE.
<Jaime/>
> -----Original Message-----
> From: Heather R. Moll [mailto:[EMAIL PROTECTED]]
> Sent: Friday, November 10, 2000 2:36 PM
> To: CF-Talk
> Subject: 2 Submit button on one form
>
>
> This is a multi-part message in MIME format.
>
> ------=_NextPart_000_0025_01C04B34.43768FC0
> Content-Type: text/plain;
> charset="iso-8859-1"
> Content-Transfer-Encoding: quoted-printable
>
> Hello everybody! Looking for some help.......
>
>
> I have a form that contains two submit buttons, each having different =
> values
> and names.
> When one of them is pressed, the following page performs a specific =
> action
> based on the name of the submit button.
>
> My question is....
> I want to prevent people from being able to just hit return/enter on
> their keyboard and submitting the form.
> If they just hit return, its just picking the first submit, and I =
> want
> my users to have a choice of what they're doing. I thought that this may
> have been posted to list before, but I couldn;t find anything in the
> archives.
>
> If anyone has any advice, it would be most appreciated!
>
> Thanks,
> Heather
>
>
>
> ------=_NextPart_000_0025_01C04B34.43768FC0
> Content-Type: text/html;
> charset="iso-8859-1"
> Content-Transfer-Encoding: quoted-printable
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <HTML><HEAD>
> <META content=3D"text/html; charset=3Diso-8859-1" =
> http-equiv=3DContent-Type>
> <META content=3D"MSHTML 5.00.3105.105" name=3DGENERATOR>
> <STYLE></STYLE>
> </HEAD>
> <BODY bgColor=3D#ffffff>
> <DIV><FONT color=3D#800080 face=3DVerdana size=3D2>Hello everybody! =
> Looking for some=20
> help.......<BR><BR><BR>I have a form that contains two submit buttons, =
> each=20
> having different values<BR>and names.<BR>When one of them is pressed, =
> the=20
> following page performs a specific action<BR>based on the name of the =
> submit=20
> button.<BR><BR>My question is....<BR> I want to =
> prevent people=20
> from being able to just hit return/enter on<BR>their keyboard and =
> submitting the=20
> form.<BR> If they just hit return, its just picking =
> the first=20
> submit, and I want<BR>my users to have a choice of what they're doing. I =
> thought=20
> that this may<BR>have been posted to list before, but I couldn;t find =
> anything=20
> in the<BR>archives.<BR><BR>If anyone has any advice, it would be most=20
> appreciated!<BR><BR>Thanks,<BR>Heather<BR><BR></FONT></DIV></BODY></HTML>=
>
>
> ------=_NextPart_000_0025_01C04B34.43768FC0--
>
> ------------------------------------------------------------------
> ------------------------------
> Archives: http://www.mail-archive.com/[email protected]/
> Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
> or send a message with 'unsubscribe' in the body to
> [EMAIL PROTECTED]
------------------------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message
with 'unsubscribe' in the body to [EMAIL PROTECTED]