some more changes
This commit is contained in:
parent
b4d376562d
commit
bfae6f8365
@ -44,7 +44,8 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") {
|
|||||||
$result = $insertStmt->execute();
|
$result = $insertStmt->execute();
|
||||||
|
|
||||||
if ($result) {
|
if ($result) {
|
||||||
echo "Registration successful. <a href='pages/login.html'>Login here</a>.";
|
echo "Registration successful. Redirecting to login page...";
|
||||||
|
header('Refresh: 2; URL=/login'); // Redirect after 2 seconds
|
||||||
} else {
|
} else {
|
||||||
echo "Error: " . $mysqli->error;
|
echo "Error: " . $mysqli->error;
|
||||||
}
|
}
|
||||||
|
@ -3,13 +3,8 @@
|
|||||||
<li><a href=""><i class="ri-settings-4-fill"></i></a></li>
|
<li><a href=""><i class="ri-settings-4-fill"></i></a></li>
|
||||||
<div class="links">
|
<div class="links">
|
||||||
<li><a href="">Home</a></li>
|
<li><a href="">Home</a></li>
|
||||||
<li><a href=""></a></li>
|
<li><a href="">Admin Panel</a></li>
|
||||||
<li><a href="" class="pfp"><template name="gravatar image"></template></a></li>
|
<li><a href="" class="pfp"><template name="gravatar image"></template></a></li>
|
||||||
|
|
||||||
You are the coolest person ever (you are admin)
|
|
||||||
|
|
||||||
ako urobím aby admin nav bol iný ako non-admin nav, a ešte aby global bol iný (login, register, atď)?
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
@ -5,9 +5,6 @@
|
|||||||
<li><a href="">Home</a></li>
|
<li><a href="">Home</a></li>
|
||||||
<li><a href=""></a></li>
|
<li><a href=""></a></li>
|
||||||
<li><a href="" class="pfp"><template name="gravatar image"></template></a></li>
|
<li><a href="" class="pfp"><template name="gravatar image"></template></a></li>
|
||||||
|
|
||||||
ako urobím aby admin nav bol iný ako non-admin nav, a ešte aby global bol iný (login, register, atď)?
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
@ -5,11 +5,6 @@
|
|||||||
<li><a href="">Home</a></li>
|
<li><a href="">Home</a></li>
|
||||||
<li><a href=""></a></li>
|
<li><a href=""></a></li>
|
||||||
<li><a href="" class="pfp"><template name="gravatar image"></template></a></li>
|
<li><a href="" class="pfp"><template name="gravatar image"></template></a></li>
|
||||||
|
|
||||||
Just USER nav
|
|
||||||
|
|
||||||
ako urobím aby admin nav bol iný ako non-admin nav, a ešte aby global bol iný (login, register, atď)?
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
Loading…
Reference in New Issue
Block a user