here is the code:
echo '<form id="register" action="index.php" method="post">
<textarea form="register" name="mloc"></textarea>
<input type="submit" value="continue" name="submit>"
</form>';
on index.php:
$a=$_POST['mloc'];
this returns:
NOTICE: undefined index
mloc
on line 1