Updated search to work with register_globals off.