Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
luker  
#1 Posted : Monday, May 7, 2007 12:12:52 PM(UTC)
luker

Rank: Member

Groups: Member
Joined: 5/6/2007(UTC)
Posts: 9

would this work as the file upload handler script using php?
Code:
<?php
echo "<p>";
echo "<fieldset>";
echo "<legend>Here are your uploaded pictures</legend>";    
foreach ($_FILES["Image"]["error"] as $key => $error) {
   if ($error == UPLOAD_ERR_OK) {
       $tmp_name = $_FILES["Image"]["tmp_name"][$key];
       $name = "images/ASP_Images/".$Name. "-".$_FILES['Image'][name][$key]; 
       move_uploaded_file($tmp_name, $name);
	   ${'Photo'.$key} = $Name . "-".$_FILES['Image'][name][$key];
	   echo '<img src="' . $name . '" alt="' . $Name . '" />';
       }
}
echo "</fieldset></p>";
?>

Edited by user Friday, February 22, 2008 3:43:26 PM(UTC)  | Reason: Not specified

Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.