section tag
parent
2e6460a8fe
commit
cfa8042be8
|
@ -1,10 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
session_start();
|
session_start();
|
||||||
%SET_LOGIN_VARIABLE%
|
%SET_LOGIN_VARIABLE%
|
||||||
%PLEAZE_NO_CACHE%
|
%PLEAZE_NO_CACHE%
|
||||||
%NO_CHEAP_SESSION_STEALING%
|
%NO_CHEAP_SESSION_STEALING%
|
||||||
|
|
||||||
$pdo = new PDO('mysql:host=localhost;dbname=web', 'webstuff', 'Schei// auf Pa$$w0rter!');
|
$pdo = new PDO('mysql:host=localhost;dbname=web', 'webstuff', 'Schei// auf Pa$$w0rter!');
|
||||||
$statement = $pdo->prepare('SELECT name FROM users WHERE id = :user_id;'); // to be replaced with optional user name off the user data table
|
$statement = $pdo->prepare('SELECT name FROM users WHERE id = :user_id;'); // to be replaced with optional user name off the user data table
|
||||||
$result = $statement->execute(array('user_id' => $_SESSION['user_id']));
|
$result = $statement->execute(array('user_id' => $_SESSION['user_id']));
|
||||||
$dbentry = $statement->fetch();
|
$dbentry = $statement->fetch();
|
||||||
|
@ -13,7 +13,6 @@ $username = $dbentry['name'];
|
||||||
$navbar = "profile";
|
$navbar = "profile";
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>ThreadR - Edit Profile</title>
|
<title>ThreadR - Edit Profile</title>
|
||||||
|
@ -28,7 +27,8 @@ $navbar = "profile";
|
||||||
<div class="item-1">
|
<div class="item-1">
|
||||||
<center><h1>ThreadR</h1></center>
|
<center><h1>ThreadR</h1></center>
|
||||||
</div>
|
</div>
|
||||||
<div class="item-2 form">
|
<div class="item-2">
|
||||||
|
<section>
|
||||||
<center><h1><?php echo " $username "; ?> </h1></center>
|
<center><h1><?php echo " $username "; ?> </h1></center>
|
||||||
<form action="%CONTENT_DIR%/profile/" method="post">
|
<form action="%CONTENT_DIR%/profile/" method="post">
|
||||||
<input type="text" name="name" maxlength="20" placeholder="First name"/>
|
<input type="text" name="name" maxlength="20" placeholder="First name"/>
|
||||||
|
@ -37,6 +37,9 @@ $navbar = "profile";
|
||||||
<input type="text" name="website" maxlength="127" placeholder="Website">
|
<input type="text" name="website" maxlength="127" placeholder="Website">
|
||||||
<button>Save Profile</button>
|
<button>Save Profile</button>
|
||||||
</form>
|
</form>
|
||||||
|
</section>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue