PHP->IMAGE UPLOAD : (UPLOAD IMAGES using Move upload function)
$image_file1 = $_FILES['file']['name'];
$c1 = rand(0,9);$c2 = rand(0,9);$c3 = rand(0,9);$c4 = rand(0,9);
$rand = $c1.$c2.$c3.$c4;
$date = mktime();
if($image_file1!='') {
move_uploaded_file($_FILES['file']['tmp_name'],'../video/'.$rand.$_FILES['file']['name']);
$path1 = '../video/'.$rand.$_FILES['file']['name'];
}
=================================================================================================
PHP->JAVASCRIPT VALIDATION : (for listbox checked)
var Item=form.template.selectedIndex;
var Result=form.template.options[Item].value;
if(Result=="")
{
alert("select anyone of the template");form.template.focus();return false;
}
---------------------------------------
$date = date('l,F j,Y');
monday,j