PHP code for online Registeration