<?php
	// upload images
?>

<script language="javascript">
								
function upload() {	
	var agree=confirm("Uploading images may take a while depending on your connection speed!");
	if (agree) {
		document.imgupload.action = "actions.php?pmode=imgupload";
		document.imgupload.submit();
	}
	else {
		false
	}
}
				
</script>

<form ENCTYPE="multipart/form-data" name="imgupload" method="post">

<input type="text" name="mid" value="1"><br><br>

<input type="file" name="image[]"><br>
<input type="text" name="caption[]"><br><br>

<input type="file" name="image[]"><br>
<input type="text" name="caption[]"><br><br>

<input type="file" name="image[]"><br>
<input type="text" name="caption[]"><br><br>

<input type="file" name="image[]"><br>
<input type="text" name="caption[]"><br><br>

<input type="file" name="image[]"><br>
<input type="text" name="caption[]"><br><br>

<input type="file" name="image[]"><br>
<input type="text" name="caption[]"><br><br>

<input type="file" name="image[]"><br>
<input type="text" name="caption[]"><br><br>

<input type="checkbox" value="1" name="resize">Resize<br><br>

<input onclick="upload();" type="button" value="Upload">

</form>