Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <form method="post" action="login2.php">
- <div align="left">
- <p align="center">Όνομα Χρήστη:</br>
- <input type="text" name="username">
- </br>
- </p>
- <p align="center">Κωδικός Πρόσβασης:</br>
- <input type="password" name="password">
- </br>
- </p>
- <p align="center">
- <input type="submit" value="Σύνδεση">
- </p>
- </div>
- </form>
- LOGIN 2
- <?php
- include ('functions.php');
- $username = $_POST['username'];
- $password = $_POST['password'];
- if (login($username, $password))
- { session_start();
- $_SESSION['user'] = $username;
- echo "ok";
- }
- else
- {
- echo "lathos";
- }
- ?>
- Kai meta exw
- include('functions.php');
- if(check_user());
- {
- display_comments();
- ?>
- <form method="post" action="sxoliofashion.php">
- <TEXTAREA NAME="comment" COLS=40 ROWS=6></TEXTAREA>
- <input type="submit" value="Sxoliase">
- </form>
- <?php
- }
- ?>
- STO SXOLIOFASHION.php
- include('functions.php');
- if(check_user());
- {
- display_comments();
- $comment = $_POST['comment'];
- echo $_SESSION['user'];
- insert_comment($_SESSION['user'], $comment);
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement