ARTICLE AD BOX
I am building a multi-lingual website and want to localise the captions shown on buttons in a form.
<form action="check.php" method="post"> <input class="btn btn-primary" name="action" value="Enter"/> <input class="btn btn-secondary" name="action" value="Cancel"/> </form>When I change the @value, that value is also received on the server. I would like to keep processing of the form simpler by handling only the default language server side, while still displaying the localised button names in the browser.
I tried adding an @id to the buttons and use <label> but that does not change the caption on the button itself, only adds the label next to it. From what I found about button captions it seems there is no option to do this without getting into javascript code to handle form submission. But maybe I am overlooking something.
