Hi guys.
I am trying to check to see if a reference var exsist's. if it does, do nothing. But if it does not. Create new var and create forlder with the new var.
if(!empty($_POST['tjRef'])){
$tjRef = $_POST['tjRef'];
}else{
$tjRef = substr($_FILES['Filedata1']['name'],0,5);
mkdir("../media/shoots/video/".$tjRef);
}
The mkdir still runs if if the var $tjRef is populated.