file path

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Arsench2000
Forum Commoner
Posts: 38
Joined: Sat Sep 15, 2007 8:18 pm

file path

Post by Arsench2000 »

Hello world,

Im trying to do some little work, but now I think may be it is not possible :(

I have a file field with brows button which is to select file
<input name="file" type="file"/>

I want that when the page loads, in the file box will the path like this c:\test.txt without clicking to brows - select file.

is it possible? please help me to do this.

Thanks in advance
Mark Baker
Forum Regular
Posts: 710
Joined: Thu Oct 30, 2008 6:24 pm

Re: file path

Post by Mark Baker »

Arsench2000 wrote:I want that when the page loads, in the file box will the path like this c:\test.txt without clicking to brows - select file.
And if I'm accessing the page from a Mac or a Linux box ? ? ? ?
Arsench2000
Forum Commoner
Posts: 38
Joined: Sat Sep 15, 2007 8:18 pm

Re: file path

Post by Arsench2000 »

Mark Baker wrote:
Arsench2000 wrote:I want that when the page loads, in the file box will the path like this c:\test.txt without clicking to brows - select file.
And if I'm accessing the page from a Mac or a Linux box ? ? ? ?

the page is a file.php and you can access from you want but it is only for type the file path + name in the file select box without clicking on the brows button
regards
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: file path

Post by requinix »

No, it is not possible.

There are many, many things you cannot do with a file input box: this is one of them.
Post Reply