Jump to content

Archived

This topic is now archived and is closed to further replies.

Gonwee

*SOLVED* 404 page referer?

Recommended Posts

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]

Share this post


Link to post
Share on other sites
$_SERVER['HTTP_REFERER'] will get you the page it came from.

And yes, you can pass arrays to functions, but leave off the brackets.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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)

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.