Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Default value of a FILE input

Status
Not open for further replies.

Loon

Programmer
May 24, 2000
100
GB
Hi,

I'm generating an HTML page from a CGI script, and am generating a table with various inputs. Some of these are file inputs, and I want to display file names and paths in them.

However, whatever the VALUE is set to in the INPUT the textbox next to the Browse button remains empty...

e.g.
Code:
<TD ALIGN=CENTER><INPUT TYPE=FILE SIZE=15 NAME=SpeFil VALUE=&quot;myfile/andpath/here&quot;></TD>

Any reason why the filename shouldn't be displayed?

Any help appreciated!
Cheers
Loon
 
Hi loon,

it's all to do with security for the browser. My understanding is that the input Type=&quot;File&quot; is a restricted object so you can gain access to the client pc.

Digga

Sharing Knowledge Saves Valuable Time!
 
the </form> should not be there. Oh! wait a minute I misread your question. Since the input tag is not really describing a text box i guess you cannot do it the way you had hoped.

Clive
 
should have read CANNOT gain access

Digga

Sharing Knowledge Saves Valuable Time!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top