Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require('includes/core.inc.php');
- require('includes/database/connect.db.php');
- session_start();
- if(isset($_POST['Register'])) {
- $username=$_POST['Username'];
- $password=$_POST['Password'];
- $query= "INSERT into users (Username,Password) VALUES ('$username','$password')";
- $res = mysql_query($query);
- if($res){
- header("Location:index.php");
- }
- }
- ?>
- <?php
- require('includes/core.inc.php');
- session_start();
- **echo "Welcome".$_SESSION['Username'];**
- if(isset($_POST['send'])){
- if(send_msg($_POST['sender'],$_POST['message'])){
- //echo "Message sent ...";
- }else{
- //echo "failed to sent ";
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement