note 129966 added to reserved.variables.session
| From: | janole2333@gmail.com | Date: | Fri, 10 Jan 2025 11:19:05 +0000 |
| Subject: | note 129966 added to reserved.variables.session | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-221778@lists.php.net to get a copy of this message | ||
<form method="post">
<div class="modal fade" id="update" tabindex="-1"
aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h1 class="modal-title fs-5"
id="exampleModalLabel">New message</h1>
<button type="button" class="btn-close"
data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<div class="mb-3">
<label for="title"
class="col-form-label">Title:</label>
<input type="text" class="form-control"
id="title" name="title"
<?php echo 'value="' .
$post['title'] . '"';?>>
</div>
<div class="mb-3">
<label for="content"
class="col-form-label">Content:</label>
<textarea class="form-control" id="content"
name="content"><?php
echo $content['content']; ?></textarea>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary"
data-bs-dismiss="modal">Close</button>
<button type="submit" name="update"
class="btn btn-primary">Send message</button>
</div>
</div>
</div>
</div>
</form>
</div>
<?php
$stmt = $conn->prepare("SELECT username FROM users WHERE id = :id");
$stmt->bindParam(':id', $_SESSION['user_id']);
$stmt->execute();
$user = $stmt->fetch(PDO::FETCH_ASSOC);
echo "<p>Welcome, " . htmlspecialchars($user['username']) .
"!</p>";
?>
<a href="logout.php" class="btn btn-danger">Logout</a>
?>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"
integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz"
crossorigin="anonymous">
</script>
</body>
</html>
----
Server IP: 45.112.84.4
Probable Submitter: 80.90.5.137 (proxied: 193.170.70.27)
----
Manual Page -- https://php.net/manual/en/reserved.variables.session.php
Edit -- https://main.php.net/note/edit/129966
Del: integrated -- https://main.php.net/note/delete/129966/integrated
Del: useless -- https://main.php.net/note/delete/129966/useless
Del: bad code -- https://main.php.net/note/delete/129966/bad+code
Del: spam -- https://main.php.net/note/delete/129966/spam
Del: non-english -- https://main.php.net/note/delete/129966/non-english
Del: in docs -- https://main.php.net/note/delete/129966/in+docs
Del: other reasons-- https://main.php.net/note/delete/129966
Reject -- https://main.php.net/note/reject/129966
Search -- https://main.php.net/manage/user-notes.php