Two Search Boxes: one all content, one only titles

It was not so hard and I have solved the problem, so for any one else stuck, just add:

if ( isset($_GET[‘search-type’]) == ‘by-ref’ )
{
add_filter( ‘posts_search’, ‘__search_by_title_only’, 500, 2 );
}

where ‘by-ref’ is set in form as

input type=”hidden” name=”search-type” value=”by-ref”