add action
This commit is contained in:
parent
df55f10fd6
commit
432e690055
|
@ -35,7 +35,7 @@ date_default_timezone_set('Europe/Amsterdam');
|
||||||
<!-- The Post function begins here -->
|
<!-- The Post function begins here -->
|
||||||
<div>
|
<div>
|
||||||
<h2>New entry</h2>
|
<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>
|
Title<br>
|
||||||
<input type='text' name='title' required><br>
|
<input type='text' name='title' required><br>
|
||||||
<br>
|
<br>
|
||||||
|
|
|
@ -21,7 +21,7 @@ include 'functions.php';
|
||||||
</div>
|
</div>
|
||||||
<div class="form">
|
<div class="form">
|
||||||
<h1>Log In</h1>
|
<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="text" name="username" placeholder="Username" required />
|
||||||
<input type="password" name="password" placeholder="Password" required />
|
<input type="password" name="password" placeholder="Password" required />
|
||||||
<input name="submit" type="submit" value="Login"/>
|
<input name="submit" type="submit" value="Login"/>
|
||||||
|
|
|
@ -23,7 +23,7 @@ include 'functions.php';
|
||||||
</div>
|
</div>
|
||||||
<div class="form">
|
<div class="form">
|
||||||
<h1>Registration</h1>
|
<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="text" name="username" placeholder="Username" required />
|
||||||
<input type="email" name="email" placeholder="Email" required />
|
<input type="email" name="email" placeholder="Email" required />
|
||||||
<input type="password" name="password" placeholder="Password" required />
|
<input type="password" name="password" placeholder="Password" required />
|
||||||
|
|
Loading…
Reference in New Issue