Now it starts with out the functions... and thas wrong but the god part is thats it executs...
The thing is that i wount it top print the first info function after i should swith to valide user function
<?PHP
function info() {
print "Please enter your usernamen in the blank field <br>
below to recive your password.<br>
Then press get password button to recive your<br>
password.<br>";
?>
<br>
<form action="<?=$PHP_SELF?>" method="post" name="hej">
<b>Your Username Here:<br><br></b>
<input type="text" name="username" size="15" class="inputSidebar" val="<?php
if($username_control != 0){ echo $_POST['username'];}
elseif(username2_control !=0){ echo $_POST['username'];}
elseif(username3_control !=0){ echo $_POST['username'];}
else{ echo ''; } ?>">
<?php echo $empty_username; ?>    
<input class="button" type="submit" name="submit" value="Get password">
<?php echo $_POST['username']; ?>
<input type="hidden" name="set" value="set">
</form>
<?php
}function validuser() {
print "Thanks in some seconds you will recive a email <br>
with your password in it.<br>
If you get an error please read the error note <br>";
}
?>
<form action="<?=$PHP_SELF?>" method="post" name="hej">
<b>Your Username Here:<br><br></b>
<input type="text" name="username" size="15" class="inputSidebar" val="<?php
if($username_control != 0){ echo $_POST['username'];}
elseif(username2_control !=0){ echo $_POST['username'];}
elseif(username3_control !=0){ echo $_POST['username'];}
else{ echo ''; } ?>">
<?php echo $empty_username; ?>    
<input class="button" type="submit" name="submit" value="Get password">
<?php echo $_POST['username']; ?>
<input type="hidden" name="set" value="set">
</form>
<?php
if ($_POST['submit'] == "set") {
if ($_POST['username'])
{
validuser();
}
else
{
info();
}
} //close "set" if
?>