<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16481" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV>> I would just alter the name parameter in your input field</DIV>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>Thanks, I'll do it that
way.</FONT></DIV></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT><BR>Indy Singh<BR>IndigoSTAR Software -- <A
href="http://www.indigostar.com">www.indigostar.com</A></DIV>
<DIV> </DIV>
<DIV> </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=talexb@gmail.com href="mailto:talexb@gmail.com">Alex Beamish</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=tpm@to.pm.org
href="mailto:tpm@to.pm.org">tpm</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Cc:</B> <A title=indy@indigostar.com
href="mailto:indy@indigostar.com">Indy Singh</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, June 18, 2007 11:42
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [tpm] html forms and submit
buttons</DIV>
<DIV><BR></DIV>On 6/18/07, <B class=gmail_sendername>Indy Singh</B> <<A
href="mailto:indy@indigostar.com">indy@indigostar.com</A>> wrote:
<DIV><SPAN class=gmail_quote></SPAN>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Hello
all,<BR><BR>I have an HTML form where I use several differnt button to
trigger<BR>different actions, e.g.<BR><input type="Submit"
NAME="action" VALUE="Open"><BR><input type="Submit"
NAME="action" VALUE="Close"> <BR><BR>The problem with this approach is
that if the script that processes this<BR>has hard coded values "Open" and
"Close", then the form can't be altered<BR>to support a differnt
language. Is there a way for a submit button in <BR>HTML to
display differnt text than what gets submitted to a SCI script?</BLOCKQUOTE>
<DIV><FONT face=Arial size=2></FONT><BR>Hi Indy,<BR><BR>I would just alter the
name parameter in your input field .. then you just look for which name is
present in the variable stream that gets returned -- you'll only get one of
the button's names. You can even look for the pattern /(\w+)_action/ .. then
the values (what's actually displayed on the button) can be in whatever
language is appropriate. <BR><BR>English:<BR>
<input type="Submit" VALUE="Open"
NAME="open_action"><BR> <input type="Submit"
VALUE="Close" NAME="close_action"><BR><BR>or<BR><BR>French:<BR></DIV>
<input type="Submit" VALUE="Ouvrez"
NAME="open_action"><BR> <input type="Submit"
VALUE="Fermez" NAME="close_action"><BR><BR></DIV>-- <BR>Alex
Beamish<BR>Toronto, Ontario<BR>aka talexb </BLOCKQUOTE></BODY></HTML>