Harlan Messinger wrote:
I want to change the name of Browse to Add...
You can't. The fact that the file input interface includes button
labeled "Browse" is a result of the way your browser is programmed. It's
an implementation detail beyond the reach of your code.
It also depends on the language of the browser (the language of the user
interface, as in menus, error messages, etc.).
How can I modify the followoing html code?
<form name="iform" action="" method="post" enctype="multipart/form-data">
<input id="file" type="file" name="image" onchange="upload()" />
<input type="hidden" name="imgnum" />
</form>
What the code really calls for is a real (nonempty) value for the action
attribute and an <input type="submit"> button. Without them, the form
cannot be used at all, unless the user is willing to use a browser with
client-side scripting enabled.
The hidden field is pointless, since it has no value and cannot thus be
a "successful control". If the idea is to populate it with a value via
scripting, a better idea is needed.