isnt it better to use jquery for form submit?
like:
Username:
<input type="text" id="username" name="username" maxlength="30" /><br />
Password:
<input type="password" id="password" name="password" maxlength="30" /><br />
<input type="button" id="register" name="register" value="Register" />
and then bind the id="register" with jquery and when its click it gets the values of username and password with val()? then pass these values to php file with jquery ajax for the database job? this prevent the page to refresh and gives a more smooth web experience.
what do you think?