如果我必须更具体地解释。 如果用户" A"是要查看用户" B"在我想要的内容顶部的个人资料页面"欢迎" A"希望你喜欢我的个人资料。" 目前,作为登录和设置用户名的一种方式,我有以下代码。
<pre>
<button class="btn btn-default btn-block" for="charName_118563" name="charName" value="Serina_Locher" style="border-top-right-radius:0;border-bottom-right-radius: 0;">
<b><span style="color: #bf16fe;">Serina_Locher</span></b>
</button>
</pre>
或者更确切地说,我的印象是这个数量的代码足以从查看配置文件的活动帐户中提取charName的值。 我试过用
回复它?php echo 'Welcome "charName". Hope you enjoy my profile.' ?>
但它没有用。任何的意见都将会有帮助。如果我的问题措辞奇怪,我想道歉。还有&#34; <?
&#34;似乎在发布之前使整个文本变为空白。
编辑:
高度具体rp.aryion.com/account.srv使用的方法是我只能推断出一种2部分登录聊天室的形式。在第二次登录后我们的个人资料页面上,我们可以使用网页设计代码从头开始创建自己的个人资料。但是,我似乎无法找到用于存储用户名的方法,以便将其回显到我的页面上。在&#34;用户A&#34;是朋友。
EDIT2:
<pre>
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width initial-scale=1, maximum-scale=1">
<meta http-equiv="content-language" content="en-us">
<!-- Global CSS -->
<link rel="stylesheet" href="/static/jslib/jquery.jgrowl.css" />
<link rel="stylesheet" href="/static/css/bootstrap-jchat.css" />
<link rel="stylesheet" href="/static/jslib/bootstrap-tagsinput/bootstrap-tagsinput.css" />
<!-- Global Javascript -->
<script type="text/javascript" src="//code.jquery.com/jquery-1.11.0.min.js"></script>
<script type="text/javascript" src="//code.jquery.com/jquery-migrate-1.2.1.js"></script>
<script type="text/javascript" src="/static/concat/bootstrap_headers.js"></script>
<title>ETA ::Character Select</title>
<style>
.btn-default.active {
border-color: #66afe9;
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset, 0 0 8px rgba(102, 175, 233, 0.6);
outline: 0 none;
}
</style>
</head>
<body>
<!--
<pre>
Debugging Info:
Account: Account{id=74975, accountName=ShadeyAnaconda, domain=aryion.com}</pre>
-->
<div class="container">
<div class="page-header">
<h1>Character Login</h1>
</div>
<div class="panel panel-default">
<div class="panel-heading">
Welcome ShadeyAnaconda, please choose a character and login.
</div>
<div class="panel-body">
<form id="sso-login-form" action="account.srv" method="POST">
<input type="hidden" name="command" value="charLogin" />
<div class="form-group">
<label for="username">Account Name</label>
<p class="form-control-static"><span id="sso-username">ShadeyAnaconda@aryion.com</span>
(From Single-Sign-On with <a href="https://aryion.com/">Aryion.com</a>) - <a href="login.srv?mode=accountLogout">Logout & Switch Account</a></p>
</div>
<div class="form-group">
<label for="room">Choose Room</label>
<div class="btn-toolbar">
<div class="btn-group" data-toggle="buttons">
<label class="btn btn-default active">
<input checked="" type="radio" name="room" value="3"> Out-Of-Chat-World</label>
<label class="btn btn-default ">
<input type="radio" name="room" value="2"> Vore Room</label>
<label class="btn btn-default ">
<input type="radio" name="room" value="1"> Roleplay Room</label>
<label class="btn btn-default ">
<input type="radio" name="room" value="4"> Games Room</label>
<label class="btn btn-default ">
<input type="radio" name="room" value="5"> Library</label>
</div>
</div>
</div>
<div class="form-group" style="max-width: 300px;">
<label>Click Character to Login</label>
<div>
<!-- Using input-group so it spans entire width of column -->
<div class="input-group">
<!--
<span class="input-group-addon">
<input type="radio" name="charName" value="Username" id="charName_######">
</span>
-->
<!--
<label class="btn btn-default btn-block active" for="charName_117774" style="border-top-right-radius:0;border-bottom-right-radius: 0;">
<input checked="" type="radio" name="charName" value="Name" style="display: none;"> <b><span style='color: #f20d12;'>Name</span></b>
</label>
-->
<button class="btn btn-default btn-block" for="charName_117774" name="charName" value="Name" style="border-top-right-radius:0;border-bottom-right-radius: 0;">
<b><span style='color: #f20d12;'>Name</span></b>
</button>
<span class="input-group-btn">
<a class="btn btn-default dropdown-toggle" data-toggle="dropdown">Edit <span class="caret"></span></a>
<ul class="dropdown-menu dropdown-menu-right" role="menu">
<li><a href="profileEdit.srv?cid=117774&page=profile" target="_blank"><i class="glyphicon-wrench glyphicon"></i> Edit Profile</a></li>
<li><a href="profileEdit.srv?cid=117774&page=prefs" target="_blank"><i class="glyphicon-heart glyphicon"></i> Edit Preferences</a></li>
<li><a href="profileEdit.srv?cid=117774&page=settings" target="_blank"><i class="glyphicon-cog glyphicon"></i> Edit Settings</a></li>
</ul>
</span>
</div>
<div class="input-group">
<!--
<span class="input-group-addon">
<input type="radio" name="charName" value="Serina_Locher" id="charName_118563">
</span>
-->
<!--
<label class="btn btn-default btn-block " for="charName_118563" style="border-top-right-radius:0;border-bottom-right-radius: 0;">
<input type="radio" name="charName" value="Serina_Locher" style="display: none;"> <b><span style='color: #bf16fe;'>Serina_Locher</span></b>
</label>
-->
<button class="btn btn-default btn-block" for="charName_118563" name="charName" value="Serina_Locher" style="border-top-right-radius:0;border-bottom-right-radius: 0;">
<b><span style='color: #bf16fe;'>Serina_Locher</span></b>
</button>
<span class="input-group-btn">
<a class="btn btn-default dropdown-toggle" data-toggle="dropdown">Edit <span class="caret"></span></a>
<ul class="dropdown-menu dropdown-menu-right" role="menu">
<li><a href="profileEdit.srv?cid=118563&page=profile" target="_blank"><i class="glyphicon-wrench glyphicon"></i> Edit Profile</a></li>
<li><a href="profileEdit.srv?cid=118563&page=prefs" target="_blank"><i class="glyphicon-heart glyphicon"></i> Edit Preferences</a></li>
<li><a href="profileEdit.srv?cid=118563&page=settings" target="_blank"><i class="glyphicon-cog glyphicon"></i> Edit Settings</a></li>
</ul>
</span>
</div>
</div>
</div>
<!--
<div class="form-group">
<button class="btn btn-default">Login</button>
</div>
-->
</form>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">New Character</div>
<div class="panel-body">
<a class="btn btn-primary" href="account.srv?command=showCreate" id="showCreate" value="Login" class="ui-state-default ui-corner-all">Create A New Character</a>
</div>
</div>
<div class="page-header">
<h1>Instructions</h1>
</div>
<ol>
<li>
<h3>Before entering the muck:</h3>
<p>Perhaps try reading the Wiki, or supplying a better page than this blatant copy of C<sup>3</sup></p>
</li>
<li>
<h3>On character creation:</h3>
<p>To create a new character, click on the <u>Create New Character</u> button and enter the information required.</p>
<p>If you have trouble logging in to the main site, creating a character, or migrating a character, please <a href="mailto:admin@aryion.com">contact us</a>.</p>
</li>
</ol>
</div>
</body>
</html>
</pre>
&#13;
答案 0 :(得分:0)
你可以这样做:
如果没有此类会话变量,您可以使用带有方法发布的HTML表单将用户A的数据发布到其他人的个人资料页面并提交到个人资料页面。
您还可以在网址中重定向具有用户ID的个人资料页面。可以使用该用户ID获取用户信息。