On 6/18/07, <b class="gmail_sendername">Indy Singh</b> &lt;<a href="mailto:indy@indigostar.com">indy@indigostar.com</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello all,<br><br>I have an HTML form where I use several differnt button to trigger<br>different actions, e.g.<br>&lt;input&nbsp;&nbsp;type=&quot;Submit&quot; NAME=&quot;action&quot; VALUE=&quot;Open&quot;&gt;<br>&lt;input&nbsp;&nbsp;type=&quot;Submit&quot; NAME=&quot;action&quot; VALUE=&quot;Close&quot;&gt;
<br><br>The problem with this approach is that if the script that processes this<br>has hard coded values &quot;Open&quot; and &quot;Close&quot;, then the form can&#39;t be altered<br>to support a differnt language.&nbsp;&nbsp;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><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&#39;ll only get one of the button&#39;s names. You can even look for the pattern /(\w+)_action/ .. then the values (what&#39;s actually displayed on the button) can be in whatever language is appropriate.
<br><br>English:<br>&nbsp; &lt;input&nbsp;&nbsp;type=&quot;Submit&quot; VALUE=&quot;Open&quot; NAME=&quot;open_action&quot;&gt;<br>&nbsp; &lt;input&nbsp;&nbsp;type=&quot;Submit&quot; VALUE=&quot;Close&quot; NAME=&quot;close_action&quot;&gt;<br><br>or<br>
<br>French:<br></div>&nbsp; &lt;input&nbsp;&nbsp;type=&quot;Submit&quot; VALUE=&quot;Ouvrez&quot; NAME=&quot;open_action&quot;&gt;<br>&nbsp; &lt;input&nbsp;&nbsp;type=&quot;Submit&quot; VALUE=&quot;Fermez&quot; NAME=&quot;close_action&quot;&gt;<br><br>
</div>-- <br>Alex Beamish<br>Toronto, Ontario<br>aka talexb