add action

This commit is contained in:
Andreas Zweili 2017-03-19 14:42:39 +00:00
parent df55f10fd6
commit 432e690055
3 changed files with 3 additions and 3 deletions

View File

@ -35,7 +35,7 @@ date_default_timezone_set('Europe/Amsterdam');
<!-- The Post function begins here -->
<div>
<h2>New entry</h2>
<form class= 'post-box p' method='POST' action=''>
<form class= 'post-box p' method='POST' action='<?= $_SERVER['PHP_SELF'] ?>'>
Title<br>
<input type='text' name='title' required><br>
<br>

View File

@ -21,7 +21,7 @@ include 'functions.php';
</div>
<div class="form">
<h1>Log In</h1>
<form action="" method="post" name="login">
<form action="<?= $_SERVER['PHP_SELF'] ?>" method="post" name="login">
<input type="text" name="username" placeholder="Username" required />
<input type="password" name="password" placeholder="Password" required />
<input name="submit" type="submit" value="Login"/>

View File

@ -23,7 +23,7 @@ include 'functions.php';
</div>
<div class="form">
<h1>Registration</h1>
<form name="registration" action="" method="post">
<form name="registration" action="<?= $_SERVER['PHP_SELF'] ?>" method="post">
<input type="text" name="username" placeholder="Username" required />
<input type="email" name="email" placeholder="Email" required />
<input type="password" name="password" placeholder="Password" required />