The way i do things like this is to have a html file and a php file , not using php in the html file.
So in a html file you would do summat like
<form action="script.php" method="post" name="Moooo">
<input name="username" type="text"/> Username
</form>
Then in the php.
$username = $_POST['username'];
echo $username;
Sometimes i liek to use the STRreplace just to clean the username of odd chars.
$username = str_replace (" ", "_", $username);
Hope this helps in any way
