| 
 Posted by Jacob Lyles on 06/18/80 11:49 
Oh, and on my first example I forgot to close my first <form> tag with 
the right bracket. Don't forget to close yours. 
 
 
bjkstudio@hotmail.com wrote: 
> Is this how my uploader.php file should look? Does the function spcript 
> go directly beneath the 
> php code? Thanks 
> ----------------------------------- 
> 
> 
> 
> <html> 
> <head> 
> <meta http-equiv="Content-Type" content="text/html; 
> charset=ISO-8859-1"> 
> <title>Untitled Document</title> 
> </head> 
> // Where the file is going to be placed 
> $target_path = "uploads/"; 
> 
> /* Add the original filename to our target path. 
> Result is "uploads/filename.extension" */ 
> $target_path = $target_path . basename( 
> $_FILES['uploadedfile']['name']); 
> $_FILES['uploadedfile']['tmp_name']; 
> 
> $uploaddir = './dir/'; 
> $file_name = $_FILES['userfile']['name']; 
> $uploadfile = $uploaddir . $file_name; 
> move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile); 
> <body> 
> </body> 
> </html>
 
  
Navigation:
[Reply to this message] 
 |