rendered paste body<? $inputIndex= $_POST['image_number']; //Grab post variables. $Client = $_POST['Client'.$inputIndex]; $Date = $_POST['Date'.$inputIndex]; $Format = $_POST['Format'.$inputIndex]; $image_name = $_POST['image_name'.$inputIndex]; $Subject = $_POST['Subject'.$inputIndex]; echo '<p>'.$image_name.'</p>'; echo '<p>'.$Subject.'</p>'; if (!is_dir("/images/uploaded/".$Subject)) { mkdir("/images/uploaded/".$Subject, 0777); } // Renaming variables (original image, new image) $original_image = "/kunden/homepages/9/d93061184/htdocs/Public/addImages/".$image_name; $new_image = "/kunden/homepages/9/d93061184/htdocs/Public/images/".$Subject."/".$image_name; //Move images to new directories rename($original_image, $new_image) or die ("Could not move file");?><!--Coded by: Phillip Royal Miller (phillip.miller@printlust.net)--> <html><head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Art Partners Group - Case Studies Administration</title> <link> <!-- IE FOUC Bug Fix --> <style type="text/css"> <!-- @import url("css/globalStyle.css"); @import url("css/addArtResult.css"); --> </style> <script type="text/javascript" src="../Case Studies/js/upload.js"></script></head> <body> <!--outer boundary box--> <div id = "outerBox"> <div id = "bannerContainer"> <div id = "bannerLinks"> <ul> <li><a href="admin.php">Administration Overview</a></li> <li><h1>Location: Add Art Result</h1></li> </ul> </div> </div> <div id = "contentBox"> <div id "outputBox"> <? echo $imagesAdded; ?> Images have successfully been added to the database, images that were not selected for processing will be deleted from the addArt folder. </div> </div> </div> </body></html>