New search concept
Posted: Fri Oct 29, 2010 7:34 am
As I understand TGF search FORM by "submit" name but not always in html code are "name" (like on AMG)
So, I suggest replace or expand current event oriented control to direct data send (POST and GET).
Some sites use POST method to send data, others use GET method.
New AMG code example (POST method):
Discogs search for artist (GET)
Advanced search (feature?)
Of course, % placeholder need replace to variables (%A %B etc) for advanced search.
Advanced search popmenu gives many benefits to user as in script user can search by any tag (by year, genre etc).
How?
Code: Select all
<form name="search" id="search_form" action="/search" method="post">
<p><input type="text" name="search_term" id="search_txt">
<input type="image" src="/img/pages/wide/go.gif" id="search_button"></p>
<p><select name="search_type" id="search_opt">
<option value="artist" selected="selected">Artist/Group</option>
<option value="album">Album</option>
<option value="song">Song</option>
<option value="work">Classical Work</option>
</select></p>
</form>
Some sites use POST method to send data, others use GET method.
New AMG code example (POST method):
Code: Select all
TITLE=POST;ACTION='http://www.allmusic.com/search';search_term=%T&search_type=Song
Code: Select all
ARTIST=GET;ACTION='http://www.discogs.com/search';Q=%A&artists=artist
Code: Select all
CUSTOM=GET;ACTION=''http://www.discogs.com/advanced_search';artist=%A&release_title=%L
Advanced search popmenu gives many benefits to user as in script user can search by any tag (by year, genre etc).
How?