Jump to content
rejoice

File Input tag in html

Recommended Posts

Hi everyone,I need a help.In my site i use the tag,<input type="file" name="file">Here I need to change the label of the browse button from "Browse...." to "Upload".How do I change that?Thanks in advance.

Share this post


Link to post
Share on other sites
i think you must use css
I dont think you need to use css. i dont see why you would want to change the browse button to upload because it would still bring up the window to find a file. you can change the submit button to say upload by adding a value to it like i did in the code below.
<form action="process.php" method='post'><input type='file' name='file'><input type='submit' vlaue='upload'></form>

now if you wanted the user to type in a location you could get rid of the browse button but then you would run the risk of having them input a wrong location or something that does not exsist. I strongly recomend not using the code below.

<form action="process.php" method='post'><input type="text" name="file"><inpuit type="submit" value="upload"></form>

this post should really be in the html section not php.

Share this post


Link to post
Share on other sites

there is no way to change that. In Opera, it says "Choose" instead of "Browse". it all depends on the browser,and the only way to change it is get a different browser, or edit an Open-source one.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...