Jump to content

File Input tag in html

Recommended Posts

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.

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.

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.

  • Create New...