返回结果作为页面链接
1.testlink.php
<div id="user"> <a href = "personcenter.php"> hello! <?php /* * testlink */ if(!isset($_COOKIE['user'])) { setcookie('user',1000000,time()+60); } echo $_COOKIE['user']; ?> </a> </div>
2. personcenter.php
<?php echo "I am personcenter"; echo ' <script language = "javascript"> alert("跳转成功"); </script>'; ?>
以上就是返回结果作为页面链接的内容,更多相关内容请关注PHP中文网(www.php.cn)!