Answer the question
In order to leave comments, you need to log in
Displaying a message when registering to another page?
Hello. I can not make a competent output of the message about successful registration. Please help.
When I register, this data is sent to a file to check if there is such an account. After verification, that verification file opens in the browser and writes "You are registered."
<?php
if(createAccount($login, $mdp, $mail)){
echo("You are registered!");
exit();
}
?>
Answer the question
In order to leave comments, you need to log in
Ajax(@lidacriss) has already been suggested.
You can also use redirection to the page with
registration success, but it is more logical to launch it in your personal account.
Those. if the registration was successful, we automatically authorize
and send it to the place where it was required.
This can be a personal account, a shopping cart, a
news page from which a person went to registration in order to leave a comment.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question