本文整理汇总了PHP中Access::get_user_name方法的典型用法代码示例。如果您正苦于以下问题:PHP Access::get_user_name方法的具体用法?PHP Access::get_user_name怎么用?PHP Access::get_user_name使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Access
的用法示例。
在下文中一共展示了Access::get_user_name方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Access
?>
<?php
$user = new Access();
?>
<div class="container-fluid">
<section class="container">
<div class="container-page">
<div class="col-md-6">
<h3 class="dark-grey">Registration</h3>
<div class="form-group col-lg-12">
<label>Username</label>
<input type="text" name="username" id="subject" class="form-control" id="" value="<?php
echo $user->get_user_name($_SESSION['uid']);
?>
"'>
</div>
<div class="form-group col-lg-6">
<label>Password</label>
<input type="password" name="" class="form-control" id="" value="">
</div>
<div class="form-group col-lg-6">
<label>Repeat Password</label>
<input type="password" name="" class="form-control" id="" value="">
</div>
<div class="form-group col-lg-6">
示例2: Access
<br/>
<hr/>
<br/>
<div class="login" style="width: 400px;">
<form id="contactform" name="login" method="post" action="">
<fieldset id="contactform">
<?php
echo Validate::$er_message;
?>
<?php
$user = new Access();
echo '<div class="one_full_c">';
echo '<label for="subject">My Username:<span></span></label>';
echo '<input type="text" name="username" id="subject" value="' . $user->get_user_name($_SESSION['uid']) . '" class="required requiredField subject" />';
echo '</div>';
echo '<div class="one_full_c">';
echo '<label for="subject">My Email:<span></span></label>';
echo '<input type="text" name="email" id="subject" value="' . $user->get_email($_SESSION['uid']) . '" class="required requiredField subject" />';
echo '</div>';
//echo '<div class="one_full_c">';
//echo '<label for="subject">My Password:<span></span></label>';
//echo '<input type="password" name="password" id="subject" value="" class="required requiredField subject" />';
//echo '</div>';
echo '<div class="one_full_c">';
echo '<label for="subject">My first Name:<span></span></label>';
echo '<input type="text" name="firstname" id="subject" value="' . $user->get_f_name($_SESSION['uid']) . '" class="required requiredField subject" />';
echo '</div>';
echo '<div class="one_full_c">';
echo '<label for="subject">My Last Name:<span></span></label>';