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 : Thursday, May 10, 2007 2:49:48 AM(UTC)
luker

Rank: Member

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

would this php srcipt work for handling the image uploads images?
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 Tuesday, December 18, 2007 3:45:54 AM(UTC)  | Reason: Not specified

Users browsing this topic
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.