<?php var_dump ($_POST); require_once './modules/chat.mod.php'; $chat = new Chat; $user_id = $_GET['id']; $chat_message = $_GET['text']; $chat -> send ($user_id, $chat_message);