<body>

<?php if(isset($_GET['sid'])){?>
登陆 <a href="one page.php">转表注册</a>
<form method="post" name="bbb">
<input type="text" />
</form>
<?php } else{ ?>
注册  <a href="?sid=<?php echo urlencode("呵呵") ?>">转到登陆 </a>
<form method="post" name="aaa"> 
<input type="text" />
</form>
<?php } ?>
</body>