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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Know the path of an image

Status
Not open for further replies.

fcjm

Programmer
Jan 15, 2001
19
0
0
PH
Does anybody have any ideas on how could I get the full path of the image which is located in a local computer? I used an input box and its type is file. When I browse for an image, I can get its name. But what I want is to be able to preview the image by using its path. Any ideas? Thanks
 
<form method=post action='some.php' onSubmit='this.file_location.value = this.file_loc.value; this.file_loc.value = &quot;&quot;;'>
<input type=file name='file_loc'>
<input type=hidden name='file_location'
</form>

should do the trick --BB
 
Thanks. But I need to do it in Php. Any ideas?
 
may help

_________________________________________________________
for the best results to your questions: FAQ333-2924
[sub]01001111 01101110 01110000 01101110 01110100[/sub]
onpnt2.gif
[sup] [/sub]
 
You can't do that with PHP. When uploading files via HTTP, the browser does not transmit the name of the file. //Daniel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top