R
R
Roman Alferov2018-06-08 12:52:23
Web development
Roman Alferov, 2018-06-08 12:52:23

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();
}
?>

But, I need it not to go to the file with the check and not give out this inscription on a white background. I need it to give out where I registered (it can be some kind of pop-up window, or in the same block with registration)
The bottom line is that I don’t know how to do it. Please help

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg, 2018-06-08
@402d

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 question

Ask a Question

731 491 924 answers to any question