Hello, I built a small Music Search engin for my website, it reads the name of the songs and the name of the file to be played from a text file, like suppose
[Quote:Database.txt]
SongName.song21.BandName.Artist
Some Other Song Name.song82.Some other band.artist
[/quote]
now i divide each line into different parts, like suppose line 2, i will divide it in such a way, that everything before the first dot is the name of the song, then is the name of the file, then the band and at last the artist...
First problem is, that if someone enters 'dIL sE rAy' and the actual song name is 'Dil Sae Ray' so it Returns that no song of such name was found.
Either i want to make the HTML field in such a way that no matter what the user enters, it automatically Capitalizes it and then sends the Capitalized text to the ASP file to process it, or, the ASP File may read it in such a way that it may Convert 'sOme sOnG naMe' to 'Some Song Name' and then compare it, is it possible ?!?
Secondly, when i compare, i compare it in such a way, like
if Split(strCurrentTextLine,".")(0) = Request.QueryString("SongToSearch") then
.... bla bla bla, meanz the sond was found....
else..
bla bla bla, meanz the song wasent found
|
but this only compares if the text enter maches the name 'Exactly' as it appears in the file, is this possible that i compare it like suppose the song name is 'They Dont Really Care About Us' and someone enters 'Care About Us' so it still gives the result ?!? how can i compare that ?!?
I noe its preety long Question, but i'm stuck 