Gonwee Posted March 31, 2006 Share Posted March 31, 2006 Is there a way with PHP to get the link that results in a 404, that way my custom 404 page can pass the info to me threw the mail function?And will,[code]function ($_POST[]);[/code]Do the same as[code]function ($_POST['a']);function ($_POST['b']);function ($_POST['c']):and so on...[/code] Link to comment https://forums.phpfreaks.com/topic/6265-solved-404-page-referer/ Share on other sites More sharing options...
ober Posted March 31, 2006 Share Posted March 31, 2006 $_SERVER['HTTP_REFERER'] will get you the page it came from.And yes, you can pass arrays to functions, but leave off the brackets. Link to comment https://forums.phpfreaks.com/topic/6265-solved-404-page-referer/#findComment-22637 Share on other sites More sharing options...
wildteen88 Posted March 31, 2006 Share Posted March 31, 2006 Do you mean is there a way for PHP to find the links that result in a 404 error message. As far as I know there isn't anyway to do that. However you can use $_SERVER['HTTP_REFERER'] this will return the page that the user last came from, so I guess this can help you alittile but there isn't away with PHP to find dead links. Link to comment https://forums.phpfreaks.com/topic/6265-solved-404-page-referer/#findComment-22640 Share on other sites More sharing options...
Gonwee Posted April 1, 2006 Author Share Posted April 1, 2006 I have another question. I have a form that will be for updating rows of the table, the stuff is going to go in a textarea and has html tags. Right now it just shows the last bit of it, but in the source it has all the other stuff.nevermind, i got it(i'm an idiot) Link to comment https://forums.phpfreaks.com/topic/6265-solved-404-page-referer/#findComment-22838 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.