I have made a form that whenever the user completes the registration successfully, it redirects him/her to a new page (thankyou.php) saying "thank you for registering, bla bla....". It works fine but I want to prevent the direct access to thankyou.php so if the user types " it redirects him to the form without displaying the thank you message. But in case the user succeeds to register, thankyou.php opens & displays the thank you message.
Do you have any idea how can I do that ?
Do you have any idea how can I do that ?