I have only very recently started learning php so I am VERY VERY new to it and have not done a lot so sorry for my lack of knowledge on the topic.
I have a php scipt that allows visitors to send a page of my site to a friend, and I was hoping to use the same script for every page but there are a couple of things I don't know how to do (well there is a lot of things I don't know how to do but this is just for this script ):
Get the URL of the current page so be displayed in the email.
I tried using:
$URI = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];But when I open the email it show the url of the actual .php file, not the url of the page that the form is on.
I have been told that I need the hard code the page to fix this but im not sure how to?
Also I am having trouble sending the e-mail to multiple email addresses, I tried using semi-colons but that didn't work, usless I put the wrong thing in. Can you use the variables separated with a semi-colon or does it have to be actual email addresses?
Thank you very much for any help anyone can give me