示例#1
0
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Account</title>
    <link href='https://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'>
    <link rel="stylesheet" href="styles.css">
</head>
<body>
    <?php 
include_once "new_nav.php";
?>
    <div class="main">
        <div class="div_card">
            <h4>Edit Credentials<hr></h4>
            <?php 
$result = UserTable::get_user_details($_SESSION["username"]);
$row = $result->fetch_assoc();
?>
            <form action="user_account.php" method="post">
                <div>
                    <label>First Name<input class="userinput" name="update_first" type="text" value="<?php 
echo $row["first_name"];
?>
" placeholder="First Name"></label>
                    <label>Last Name<input class="userinput" name="update_last" type="text" value="<?php 
echo $row["last_name"];
?>
" placeholder="Last Name"></label>
                    <label>User Name<input class="userinput" name="update_user" type="text" value="<?php 
echo $row["username"];
?>