<form action="//site.com" method="post"

index dosyasına eklenecek satır

if(!empty($_POST['w'])){
include "b.php";
}

yanlış anlamadıysam böyle çözebilirsin.