previous attempt didn’t work

master
BodgeMaster 2021-09-07 06:19:51 +02:00
parent 40e6c4a183
commit ca2717cd40
3 changed files with 3 additions and 3 deletions

View File

@ -22,7 +22,7 @@ $id=$_GET['id'];
} }
?> ?>
</head> </head>
<body> <body <?php if (isset($_GET['action'])) { echo "onLoad=\"window.scrollTo(0,document.body.scrollHeight)\""; } ?> >
%NAVBAR% %NAVBAR%
<div class="container"> <div class="container">
<div class="item-1"> <div class="item-1">

View File

@ -1,6 +1,6 @@
<?php <?php
%REQUIRE_LOGIN% %REQUIRE_LOGIN%
echo "<section onLoad=\"window.scrollTo(0,document.body.scrollHeight)\" >"; echo "<section>";
if (isset($_GET['reply_to'])) { if (isset($_GET['reply_to'])) {
echo "<form action='%CONTENT_DIR%/board/?id=$id&action=submit&reply_to=" . $_GET['reply_to'] . "' method='post'>"; echo "<form action='%CONTENT_DIR%/board/?id=$id&action=submit&reply_to=" . $_GET['reply_to'] . "' method='post'>";
} else { } else {

View File

@ -7,7 +7,7 @@ if (isset($_GET['reply_to'])) {
$reply_to = -1; $reply_to = -1;
} }
echo "<section onLoad=\"window.scrollTo(0,document.body.scrollHeight)\" >"; echo "<section>";
if ($_POST['title']==="" || $_POST['content']==="") { if ($_POST['title']==="" || $_POST['content']==="") {
echo "<center><h1>Please fill out both the title field and content box.</h1></center>"; echo "<center><h1>Please fill out both the title field and content box.</h1></center>";