有三种方式,一般常用的有两种
一、在php脚本中实现跳转 
header("location:url");
二、在html的<meta>头中向另外一个页面发送文件头
<meta http-equiv=refresh content="0;URL=url">
其中的0是0秒后跳转如果用第一种方式的话,注意需要把代码写在<??>中,这是php脚本。
如果是第二种,就需要放在<??>外,因为那不是php代码,是html脚本