Hola
Ruben S.
Prueba poniendo así el formulario:
Código:
<form id="chat" method="post" action="chat.php" target="popup" onsubmit="window.open(this.action,'popup','width=640,height=480,resizable=no,scrollbar=no');return false;">
En la página chat.php, recoges el valor con:
Código PHP:
$variable = $_POST['nick'];
Saludos,