previous attempt didn’t work
parent
40e6c4a183
commit
ca2717cd40
|
@ -22,7 +22,7 @@ $id=$_GET['id'];
|
|||
}
|
||||
?>
|
||||
</head>
|
||||
<body>
|
||||
<body <?php if (isset($_GET['action'])) { echo "onLoad=\"window.scrollTo(0,document.body.scrollHeight)\""; } ?> >
|
||||
%NAVBAR%
|
||||
<div class="container">
|
||||
<div class="item-1">
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
%REQUIRE_LOGIN%
|
||||
echo "<section onLoad=\"window.scrollTo(0,document.body.scrollHeight)\" >";
|
||||
echo "<section>";
|
||||
if (isset($_GET['reply_to'])) {
|
||||
echo "<form action='%CONTENT_DIR%/board/?id=$id&action=submit&reply_to=" . $_GET['reply_to'] . "' method='post'>";
|
||||
} else {
|
||||
|
|
|
@ -7,7 +7,7 @@ if (isset($_GET['reply_to'])) {
|
|||
$reply_to = -1;
|
||||
}
|
||||
|
||||
echo "<section onLoad=\"window.scrollTo(0,document.body.scrollHeight)\" >";
|
||||
echo "<section>";
|
||||
|
||||
if ($_POST['title']==="" || $_POST['content']==="") {
|
||||
echo "<center><h1>Please fill out both the title field and content box.</h1></center>";
|
||||
|
|
Loading…
Reference in New Issue