Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
|
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 5th, 2004, 03:39 AM
Registered User
 
Join Date: Jul 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to joconnor Send a message via Yahoo to joconnor
Default getting path of file using PHP or Javascript

i have a form where the user can choose a file to be executed by browsing their hard drive. the code i'm using to alloe them to do this is <INPUT name=sourcebutton TYPE="file" class="browse" value="Browse">. i need the path of the file in order to execute the file. any help is greatly appreciated. i'm relativly new to PHP and have never used the file chooser before.
thanx in advance
joconnor
 
Old September 25th, 2004, 11:31 AM
Authorized User
 
Join Date: Aug 2003
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to dkittell Send a message via AIM to dkittell Send a message via Yahoo to dkittell
Default

Are you looking to upload the file and then run it or run a file that is on their computer on your site such as a word find that uses a text doc from a person's comp.

---
David Kittell
 
Old September 27th, 2004, 10:09 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 101
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via AIM to Moharo
Default

first of all there is no "value" attribute for <input type="file">. if you add <input type="file"> you will notice there's a button next to the textbox with "browse" value, use that to browse for the file

www.campusgrind.com the college portal





Similar Threads
Thread Thread Starter Forum Replies Last Post
Invalid report file path rwalker Crystal Reports 1 January 28th, 2009 10:49 AM
Knowing File Path x_ray VB.NET 2002/2003 Basics 8 February 15th, 2006 04:12 PM
Getting path of the file zorglub76 C# 4 December 23rd, 2005 04:25 AM
Get File path maxpotters Excel VBA 4 April 6th, 2005 01:19 PM
How to get the File Path DarthSith ASP.NET 1.0 and 1.1 Basics 2 October 29th, 2004 02:24 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.