|
I am trying to make one of those "email this page to a friend form" with php, I found some stuff that worked like the Refer function, but it didnt work in IE7. Any suggestions or good tutorials that you know of?
What I am doing right now is makking an email button on every page that has a hidden form that uses this to get the url
$url = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['php_SELF'] . '?' . $_SERVER['QUERY_STRinG']
and this to store the url and send it to my next page
<input type= "hidden" name= "url_real" value= "<?php print $url;?>" />
Im then using this to display the url
<?php print $_POST['url_real']; ?>
I need to again send the url and other info from that page to a php mail function.
I've been working on this for a couple weeks and just cant get anything to work. I've found some tutorials, but they dont seem to work in IE. Thanks very much.
PHP and HTML Question, getting current url and emailing it?
What do you get on IE7? Is the HTTP_HOST still correct in IE7?
PHP and HTML Question, getting current url and emailing it?
Do you mean that you are not able to use $_SERVER['HTTP_REFERER']?
|