Can anyone tell me how I can set a default value on a in a form. Ive tried value="some value" but it doesnt work. Anyone have any suggestion? The code Im using looks like this:
Yepp its a form to upload a file.... When you enter the input="file" you get a textfield and a browse-button. When you browse the file you want the path to that file is written in the textfield... I want to have a default value in that textfield.....and still give the user the option of browsing another file....
: What exactly are you trying to do? : : Is this a form to upload a file? :
I don't think you can do it. Reason. Well if you can put a default value in this field and you have a onload="submit()" then you can put any file from the clients machine to your server without them knowing. Just a guess.
Comments
Is this a form to upload a file?
When you enter the input="file" you get a textfield and a browse-button.
When you browse the file you want the path to that file is written in the textfield...
I want to have a default value in that textfield.....and still give the user the option of browsing another file....
: What exactly are you trying to do?
:
: Is this a form to upload a file?
:
a normal field would go like this: and have googoo as the default.
just try