muralibobby2015 17 Posting Pro

hello...i am using this script. but when ever i am posting images then uploading only one image. this is my code.

<?
ob_start();
extract($_POST);
extract($_REQUEST);
if($_POST)
{

echo $_FILES["file_1"]["name"];exit;

if(is_uploaded_file($_FILES["file_1"]["tmp_name"])!='')
		{
		
		      $rand_variable1=rand(10000,100000);
			  $node_online_name1=$rand_variable1.$_FILES["file_1"]["name"];
//echo $node_online_name1;exit;
			if(is_uploaded_file($_FILES["file_1"]["tmp_name"]))
			{
				move_uploaded_file($_FILES["file_1"]["tmp_name"], "attachments/" . $node_online_name1);
				
				$Attachments1=$node_online_name1;
				echo  $Attachments1;exit;
			}
			}
}
?>
<html>

<head>
	<!-- Include the javascript -->
	<script>// Multiple file selector by Stickman -- [url]http://www.the-stickman.com[/url] 
// with thanks to: [for Safari fixes] Luis Torrefranca -- [url]http://www.law.pitt.edu[/url] and Shawn Parker & John Pennypacker -- [url]http://www.fuzzycoconut.com[/url] [for duplicate name bug] 'neal'
function MultiSelector( list_target, max ){this.list_target = list_target;this.count = 0;this.id = 0;if( max ){this.max = max;} else {this.max = -1;};this.addElement = function( element ){if( element.tagName == 'INPUT' && element.type == 'file' ){element.name = 'file_' + this.id++;element.multi_selector = this;element.onchange = function(){var new_element = document.createElement( 'input' );new_element.type = 'file';this.parentNode.insertBefore( new_element, this );this.multi_selector.addElement( new_element );this.multi_selector.addListRow( this );this.style.position = 'absolute';this.style.left = '-1000px';};if( this.max != -1 && this.count >= this.max ){element.disabled = true;};this.count++;this.current_element = element;} else {alert( 'Error: not a file input element' );};};this.addListRow = function( element ){var new_row = document.createElement( 'div' );var new_row_button = document.createElement( 'input' );new_row_button.type = 'button';new_row_button.value = 'Delete';new_row.element = element;new_row_button.onclick= function(){this.parentNode.element.parentNode.removeChild( this.parentNode.element );this.parentNode.parentNode.removeChild( this.parentNode );this.parentNode.element.multi_selector.count--;this.parentNode.element.multi_selector.current_element.disabled = false;return false;};new_row.innerHTML = element.value;new_row.appendChild( new_row_button );this.list_target.appendChild( new_row );};};</script>
</head>

<body>

<!-- This is the form -->
<form enctype="multipart/form-data" action="" method="post">
	<!-- The file element -- NOTE: it has an ID -->
	<input id="my_file_element" type="file" name="file_1">
	<input type="submit" name="submit" value="submit">
</form>
Files:
<!-- This is where the output will appear -->
<div id="files_list"></div>
<script>
	<!-- Create an instance of the multiSelector class, pass it the output target and the max number of files -->
	var multi_selector = new MultiSelector( document.getElementById( 'files_list' ), 3 );
	<!-- Pass in the file element -->
	multi_selector.addElement( document.getElementById( 'my_file_element' ) );
</script>
</body>
</html>