Can anyone tell me if it's possible to get $HTTP_REFFERER to ignore anything after the ? in a url? i.e. /page.php?ID=1 would become /page.php? TIA. EDIT: Sorted now with PHP: $from = substr($_SERVER['HTTP_REFERER'], 0, 45); I should read php.net more often .
Yeah you should, but that's probably the wrongest way to do it that I can think of. May I suggest parse_url()?
I also need to learn/remember how to spell referer! Thanks for the tip Linear, I'll stick that in place of my bodged code tomorrow.