Form input type="file" problem!!!! - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Form input type="file" problem!!!!

muranmuran Posts: 9Member
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:

the value="c: ext.txt" doesnt work.....

/Muran

Comments

  • James FerraraJames Ferrara Posts: 15Member
    What exactly are you trying to do?

    Is this a form to upload a file?

  • muranmuran Posts: 9Member
    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?
    :


  • James FerraraJames Ferrara Posts: 15Member
    if that's the question, it's a simple "input" kinda question.

    a normal field would go like this: and have googoo as the default.

    just try

  • muranmuran Posts: 9Member
    I hav tried that but the value is ignored.... =(



  • digit5000digit5000 Posts: 2Member
    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.

Sign In or Register to comment.