如何用Header函数
本技巧告诉大家如何用Header函数实现类似ASP的Response.Redirect功能,虽然很简单,但还是值得一看的哦.<BR>if(isset($url)){<BR>/*<BR>请注意,这样的语句是无效的:<BR>header("Location :$url");<BR>header("Location : $url");<BR>这样写是可以的:<BR>header("Location:$url");<BR>header("Location: $url");<BR>也就是说在Location和冒号之间不能有空格,<BR><BR>希望您不要再犯这个错误了哦,^_^<BR>*/<BR>header("Location:$url");<BR>}<BR>else{<BR>?><BR>页:
[1]

