[英]display an information in a page from another page in php
I'm building a chat system and I have a list of friend display on a page, so what I want actually is to display a div with a friend username at the top of the div went the friend name is clicked as that of Facebook. 我正在建立一个聊天系统,并且在页面上显示了一个朋友列表,所以我实际上想要在div的顶部显示一个带有朋友用户名的div,然后单击该朋友的名字作为Facebook的名字。
chat.php chat.php
<a href="view.php?id=<?php echo $rowf['friend_uid'].'<br>'; ?>">
<?php echo $rowf['friend_uid'].'<br>'; ?></a>
view.php view.php
if(isset($_GET["id"])){
echo '<div class="chat">'.$_GET[ "id"].'</div>';
}
how will I echo data in view.php in chat by clicking on the username with a link to view.php
如何通过单击带有链接到view.php
的用户名在聊天中的view.php中回显数据
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.