<form method="post" action="index.php" name="setupform"> <div class="form-group"> Username: <input placeholder="Username" id="login_input_username" class=" form-control login_input" type="text" name="user_name" required> Email: <input placeholder="Email" id="login_input_email" class="form-control login_input" type="email" name="user_email" autocomplete="off" required> Password: <input placeholder="Password" id="login_input_password" class="form-control login_input" type="password" name="user_password" autocomplete="off" required> Player ID: <input placeholder="Player ID" id="login_input_playerid" class=" form-control login_input" type="number" name="playerid"> Picture: <select id='user_pic' name='user_pic' class=" form-control login_input"> <?php for ($icon = 1; $icon <= lvlmed; $icon = $icon + 1) { echo '<option value="' . $icon . '">' . iconName($icon) . '</option>'; } ?> </select> <br> <input class="btn btn-lg btn-primary" style="float:right;" type="submit" name="setup" value="Setup"> </div> </form> </div> </div> <!-- /.container-fluid --> </section> </section>
$result_of_query = $db_connection->query($sql); while ($row = mysqli_fetch_assoc($result_of_query)) { ?> <form method='post' action='<?php echo htmlentities($_SERVER['PHP_SELF']); ?> ' name='profileEdit'> <?php $userPid = $row["playerid"]; echo "<center>"; echo "<h4>" . $lang['emailAdd'] . ": <input style='min-width:300px;text-align:center;'id='email' type='text' name='email' value='" . $row["user_email"] . "'></h4>"; echo "<h4>" . $lang['rank'] . ": " . $row["user_level"] . "</h4>"; echo "<h4>" . $lang['picture'] . ": "; echo "<select id='user_pic' name='user_pic'>"; for ($icon = 1; $icon <= 6; $icon = $icon + 1) { echo '<option value="' . $icon . '" ' . select($icon, $row['user_profile']) . '>' . iconName($icon) . '</option>'; } echo "</select>"; echo "<h4>" . $lang['playerID'] . ": " . $row["playerid"] . "</h4>"; echo "<input class='btn btn-sm btn-primary' type='submit' name='edit' value='" . $lang['subChange'] . "'> "; echo "<a data-toggle='modal' href='#password'><button type='button' class='btn btn-sm btn-primary'>" . $lang['changePass'] . "</button></a>"; echo "</center>"; } ?> <div aria-hidden="true" aria-labelledby="Passchange" role="dialog" tabindex="-1" id="password" class="modal fade"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h4 class="modal-title"><?php echo $lang['enterPass'];