CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: General Discussions: General Questions:
Form Question

 



sleuth
Enthusiast

Feb 3, 2001, 8:30 PM

Post #1 of 6 (3755 views)
Form Question Can't Post

 
You know when you are using a form and you put,

<input type="file" name="path">

To pass a path to a file to your script.

How can you have a preset value in the field. value="blablabla" doesn't work.

I need a way for people to edit there path once the've choosen one in the first place.

I'm pretty tiered so if I sound retarded it's not my fault,

Thanks,

Tony



pu_nk
journeyman

Feb 4, 2001, 8:12 PM

Post #2 of 6 (3749 views)
Re: Form Question [In reply to] Can't Post

Well i read your question and i tried everything that i could with my html skills and all the HTML editors and nothing would should the value of such a tag.
Front Page 98 would not even give me the form field properties.

If you want a visual way to show the path maybe have a drop down menu. or if a non visual way use
<input type=hidden.....>

But to answer your question again.. I dont think there is a way to show a value with a tag like <input type=file...>





Kanji
User

Feb 5, 2001, 1:26 AM

Post #3 of 6 (3748 views)
Re: Form Question [In reply to] Can't Post

You can't. At least not with straight HTML as preset values are somewhat of a security concern, with the two major browsers opting to ignore any default set rather than prompt the user for consent (per the RFCs).

Perhaps you can kludge things with JavaScript or perhaps you should turn your eye to a Java solution instead?



sleuth
Enthusiast

Feb 5, 2001, 2:32 PM

Post #4 of 6 (3744 views)
Re: Form Question [In reply to] Can't Post

 
I'm came up with the same dead ends pu_nk,

I even tried forcing a value into the field using javascript. I'm think of some way around it.

Thanks Guys,

Tony



pu_nk
journeyman

Feb 20, 2001, 3:26 AM

Post #5 of 6 (3723 views)
Re: Form Question [In reply to] Can't Post

Was this question ever solved ?
I am some what interested in the way it was done.



sleuth
Enthusiast

Feb 22, 2001, 3:26 PM

Post #6 of 6 (3717 views)
Re: Form Question [In reply to] Can't Post

 
No, not even with javascript could I get this one to work for me.

What I wound up doing was just using the old file if no new file is specified. It's still blank in the field, but I at least mentioned the file name below the field to show that it was remembered and already in use.

Tony


 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives