in a.php put this
HTML Code:
<form name="get id through url" action="./b.php" method="GET" target="_self">
<input name="id" type="text" size="30" value="put here any thing you want" />
<input type="submit" name="submit" />
in b.php put this
PHP Code:
<?php
echo $_GET['id'];
?>
or if the id is shown in a.php it self then you can use the above b.php php code in a.php to see the value which is passed through url