avatar
Untitled

mollejita 139 3rd Apr, 2020

MARKUP 0.40 KB
                                           
                         <?php 
		if (isset($_POST['pseudo']) and isset($_POST['message'])) 
		{
			$req = $bdd->prepare('INSERT INTO messages( pseudo, message) VALUES( :pseudo, :message)');
			$req->execute(array(
				'pseudo' => $_POST['pseudo'],	
				'message' => $_POST['message'],
			));

			header('Location: minichat.php');	
		}

		else
		{
			header('Location: minichat.php');
		}		
	?>
                      
                                       
To share this paste please copy this url and send to your friends
RAW Paste Data

Comments

Authentication required

You must log in to post a comment.

Log in
    There are no comments yet.
Recent Pastes