add: php_post @line:61,97
Added php post methods for the login and register modal, to change determination path just edit the form tag param action in line 61 and 97.
This commit is contained in:
parent
10599e2673
commit
416fe65716
29
index.php
29
index.php
@ -58,23 +58,26 @@
|
|||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
Login into your FriendsBook Account!
|
Login into your FriendsBook Account!
|
||||||
<!--Login-->
|
<!--Login-->
|
||||||
|
<form action="index.php" method="post">
|
||||||
|
|
||||||
<div class="input-group input-group-sm mb-3">
|
<div class="input-group input-group-sm mb-3">
|
||||||
<div class="input-group-prepend">
|
<div class="input-group-prepend">
|
||||||
<span class="input-group-text" id="inputGroup-sizing-sm">Username</span>
|
<span class="input-group-text" id="inputGroup-sizing-sm">Username</span>
|
||||||
</div>
|
</div>
|
||||||
<input type="text" class="form-control" aria-label="Small" aria-describedby="inputGroup-sizing-sm">
|
<input type="text" class="form-control" name="loginName" aria-label="Small" aria-describedby="inputGroup-sizing-sm">
|
||||||
</div>
|
</div>
|
||||||
<div class="input-group input-group-sm mb-3">
|
<div class="input-group input-group-sm mb-3">
|
||||||
<div class="input-group-prepend">
|
<div class="input-group-prepend">
|
||||||
<span class="input-group-text" id="inputGroup-sizing-sm">Password</span>
|
<span class="input-group-text" id="inputGroup-sizing-sm">Password</span>
|
||||||
</div>
|
</div>
|
||||||
<input type="password" class="form-control" aria-label="Small" aria-describedby="inputGroup-sizing-sm">
|
<input type="password" class="form-control" name="loginPassword" aria-label="Small" aria-describedby="inputGroup-sizing-sm">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
|
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
|
||||||
<button type="button" class="btn btn-primary">Save changes</button>
|
<button type="submit" class="btn btn-primary">Save changes</button>
|
||||||
</div>
|
</div>
|
||||||
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -91,6 +94,8 @@
|
|||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
Join our Community now! #friends
|
Join our Community now! #friends
|
||||||
<!--Register-->
|
<!--Register-->
|
||||||
|
<form action="index.php" method="post">
|
||||||
|
|
||||||
<div class="input-group input-group-sm mb-3">
|
<div class="input-group input-group-sm mb-3">
|
||||||
<div class="input-group-prepend">
|
<div class="input-group-prepend">
|
||||||
<span class="input-group-text" id="inputGroup-sizing-sm">Username</span>
|
<span class="input-group-text" id="inputGroup-sizing-sm">Username</span>
|
||||||
@ -113,7 +118,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
|
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
|
||||||
<button type="button" class="btn btn-primary">Create Account</button>
|
<button type="submit" class="btn btn-primary">Create Account</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -122,6 +127,22 @@
|
|||||||
<h2> Test Commit </h2>
|
<h2> Test Commit </h2>
|
||||||
|
|
||||||
|
|
||||||
|
LoginModalData:
|
||||||
|
Welcome <?php echo $_POST["loginName"]; ?><br>
|
||||||
|
Your Password is: <?php echo $_POST["loginPassword"]; ?><br>
|
||||||
|
<br>
|
||||||
|
RegisterModalData:
|
||||||
|
Welcome <?php echo $_POST["registerName"]; ?><br>
|
||||||
|
Your Password is: <?php echo $_POST["registerPassword"]; ?><br>
|
||||||
|
Your Mail Adress is: <?php echo $_POST["registerMail"]; ?><br>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user