sanırım oluşturdugunuz dosyada
header'ın üst satırında html code bulunuyor bu nedenle hata alıyorsunuz muhtemelen
şu şkilde yapabilirsiniz
form kısmını istediğiniz yere ekleyin
echo '<form method="POST" action="you.php">'."\n";
echo ' <input type="text" name="video_id" size="22">'."\n";
echo ' <input type="hidden" name="git" size="22" value="ok">'."\n";
echo ' <input type="submit" value="Gönder" name="B1">'."\n";
echo '</form>'."\n";bu kısmıda sayfanızın en başına koyun yada yeni bir dosya oluşturun formu oraya post edin
if ($_POST[git] == 'ok'){
header("Location: http://rd.cache.l.google.com/get_video?video_id=$_POST[video_id] ");
}