All pastes #116778 Raw Edit

Untitled

public text v1 · immutable
·published 2006-08-05 13:33 UTC
rendered paste body
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Foodplanet.co.uk</title>
<script> 
self.resizeTo(300,500);
self.moveTo(700,350);
</script>
</head>

<body>
<?php $bus_id = "20061436"; ?>

<form action="" method="post" enctype="multipart/form-data">
<p>Pictures:
<input type="file" name="pictures[]" /><br>
<input type="file" name="pictures[]" /><br>
<input type="file" name="pictures[]" /><br>
<input type="file" name="pictures[]" /><br>
<input type="file" name="pictures[]" /><br>
<input type="submit" value="Send" />
</p>
</form>
 
<?php
foreach ($_FILES["pictures"]["error"] as $key => $error) {
   if ($error == UPLOAD_ERR_OK) {
       $tmp_name = $_FILES["pictures"]["tmp_name"][$key];
       $name = $_FILES["pictures"]["name"][$key];
       move_uploaded_file($tmp_name, "images/data/$bus_id/pictures/$name");
	   echo 'Filename: '.$name.' Has been uploaded<br>';
	   
   }
   
}
echo '<br>When done click <a href="Javascript: self.close()">HERE</a> and Click <b>Yes</b>, to carry on with registration';
?>