The PHP code for register request