$videos = 8; if(isset($_GET['vid'])){ $selvid = intval($_GET['vid']); }else{ $selvid = 1; } $current_vid = str_pad($selvid, 2, "0", STR_PAD_LEFT); ?>