PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
This is my 404 page for my site. I want to be able to send myself some information. The email is sent fine but I want to include the referrer page. So like if a user came to the 404 page from a_page.php then it would tell me "a_page.php". The code below is the code I have so far. I also wanted it to be able to output either a read only input box or a text based on whether or not the refferer page variable is blank or not. If it is blank then I want it to let the user enter something. If it is not blank then I just want it to tell the user the referrer page. Can someone please help me? If you have any questions about what I'm trying to do here feel free to reply here or contact me. Thanks.
The "=" operator sign means, set $HTTP_REFERER equal to nothing. You want to use the "==" operator sign, which checks to see if $HTTP_REFERER is equal to nothing. The best way would probably be: