 <?php
 if(isset($_POST['subvideo'])){
	$video = $_POST['txtvideo'];
	$type=1;
	$query="INSERT INTO $table values (0, '$type','$aid', '$video')";
	mysql_query($query);
 }
 
 echo'
 <form name="form" id="formID" method="POST" action="'.$action.'&p='.$_GET['p'].'" enctype="multipart/form-data" style="margin:10px;">	
		<table border="0" cellpadding="0" cellspacing="0"  id="id-form">
		<tr>
			<th valign="top"><font color="red">* </font> Video ID :</th>
			<td valign="top"> &nbsp;&nbsp;
			<input type="text" class="validate[required] inp-form" id="txtvideo" name="txtvideo" style="padding:4px; border:1px solid #999999;"/>
			</td>
			<td><input type="submit" value="Add Video" name="subvideo" style="padding:1px; margin-left:10px;" /></td>
		</tr>
		
	</table>
	</form>
	';
		
	?>
</body>