如何使网页标题动态化 [英] how to make title of webpage dynamic

查看:82
本文介绍了如何使网页标题动态化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何根据Facebook用户的页面用户更改网页标题



说我的名字是john所以页面标题应该是john



所以我需要根据用户名称更改页面标题而不询问他的名字



怎么去关于代码中的那个??

how to make title of webpage change according to user of page like profiles of facebook

say my name is john so the page title should be john

so i need to change the title of page according to name of user without asking his name

how to go about that in code ??

推荐答案

试试这个假设你在会话中存储你的用户名意味着



Try this suppose u stored your user name in session means


username =
username=


_SESSION [' < span class =code-string> user'];



?>
< html >
< head > < / head >
< title > <? php echo
_SESSION['user']; ?> <html> <head></head> <title><?php echo


这篇关于如何使网页标题动态化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆