1. use $_FILES 2. $_FILES['file'] would be na array holding info about the uploded file
bob pilly wrote:
I have a page where a user uses a browse button in html to upload a file from there client pc. They then click upload which submits the form to the second page: example
<form name="form1" method="post" action="/test2.php">
<input type="file" name="file">
<input name="upload" type="submit" id="upload" value="upload">
I am then wanting to read the info in that file in the test2.php page but are struggling. At the moment im trying to use:
which i thought would output the first line of the file but it doesnt. Can someone point me to some good docs on how php deals with files and how i can readthrough the file uploaded from a user please?
Thanks for any help in advance!
--------------------------------- Want to chat instantly with your online friends? Get the FREE Yahoo!Messenger
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php