Greetings all, Using PHP 4.1.1 / Apache Server / MS Win 98 / IE 5.5 The following script is from Julie Meloni's book PHP Fast and Easy on page 170-174.
The first part is an html form in which the user browses and chooses a file to be upoloaded to the server. The script works fine in that when I chose a file and hit submit it, the file ends up in: C:\apache\htdocs However, in the book, in the last illustration, she explains: "Just to be sure, use the File/Open Page menu item in your _browser_ to navigate through your filesystem and find the file that you just uploaded." The illustration shows the .jpg file _within_ the browser screen on the upper left hand side. When I follow those steps and hit file / open, my paint program takes over and opens the uploaded .jpg file and the browser interface of MS IE 5.5 is gone. Any advice would be appreciated. Thank you. Tony Ritter ....................................................................... // html form </head> <body> <form action="upload.php" method="post" enctype="multipart/form-data"> <p> File to upload: <input type="file" name="thefile" size="30"> </p> <p> <input type="submit" name="submit" value="Upload File"> </p> </form> </body> </html> // .php script called upload.php <? if ($thefile != "") { copy("$thefile","C:\\apache\\htdocs\\$thefile_name")or die("Could not copy the file."); } else { echo "No file to upload."; } ?> <html> <head> </head> <body> <p> You sent: <? echo "$thefile_name"; ?>, a <? echo "$thefile_size"; ?> byte file with a mime type of <? echo "$thefile_type" ; ?>. </p> </body> </html> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php