The URL of the page is dynamically collected by using the php HTTP_REFERER function which collects the referrer of the page. If all form validations are passed then the details of the form submitted by the user is posted to the friend's email address using the php mail function. This script uses server side php form validation to check the user inputs and give proper error messages to the user. This script uses two parts one is to display the html form and the other part is to process the script and sending back the visitor to the original page. This script is popularly known as Tell a friend script. You must have seen in many pages in different sites. ![]() ![]() ![]() How to send the URL without using any mail program or by going out and preparing an email with the URL? Here is a simple script to do that. PHP tell a friend script to send URL of a page to an email addressWe often want to send address or URL of a page to our friend or peers to visit (check) the page.
0 Comments
Leave a Reply. |