Hello all!
I am new to PHP and I am stuck with a problem. This is the scenario:
I have 2-3 pages in my website which ask input from user, such as registration page, add sales details page etc. Now when the user submits the form, a message is displayed saying the details have been added successfully or the user has been registered succcessfully. The message is displayed on the same page, which i dont want. I want all such pages to redirect to a separate "success.php" page which will display the message.
The problem is how do I distinguish between the pages, as in which page has redirected to the success.php page? If there's a way to know what page is the request coming from then i can print different success messages for different requests on the same page.
Please help me out!
Thanks in advance!
I am new to PHP and I am stuck with a problem. This is the scenario:
I have 2-3 pages in my website which ask input from user, such as registration page, add sales details page etc. Now when the user submits the form, a message is displayed saying the details have been added successfully or the user has been registered succcessfully. The message is displayed on the same page, which i dont want. I want all such pages to redirect to a separate "success.php" page which will display the message.
The problem is how do I distinguish between the pages, as in which page has redirected to the success.php page? If there's a way to know what page is the request coming from then i can print different success messages for different requests on the same page.
Please help me out!
Thanks in advance!