Jump to content

bnickles1961

Members
  • Posts

    11
  • Joined

  • Last visited

Everything posted by bnickles1961

  1. Yes that is exactally what is happening when I do a search with the search box How would I implement the 2 options you were talking about? I have no expeirence in this kind of coding.
  2. Will be back later have things to do I will explain more when I return
  3. The way it is now, if you type a letter in the search box, it returns everything that contains the letter you typed in but the character search: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z what ever letter you click returns Only artists from the letter you click, I want the search box to do the same so I just want to convert the search box into the characterletter so it will work the same if it is possible??
  4. <div id="search"> <form method="get" action="playlist.php" name="character"> Search: <?php InputText('search', $search, '',20); ?> <<input type="submit" value="search" name="B1"/> < Display <?php InputCombo('limit', $limit, 25, '5,10,25,50,100', "", "document.forms.searchParameters.submit();"); ?> results I want to modify the above code to work like this code: <table> <tbody> <tr> <td> <input type="submit" name="character" class="characterButton" value="All" onclick="document.forms.searchParameters.search.value=''"/> </td> <td> <input <?php echo "0 - 9" == $character? "id='activeCharacter'" : "";?> type="submit" name="character" class="characerButton"value='0 - 9'/> </td> <?php for($charVal = ord('A');$charVal <= ord('Z'); $charVal++) { $c = chr($charVal); echo "<td>"; echo "<input ".($character == $c? "id='activeCharacter'" : "")." type='submit' name='character' class='characterButton' value='$c' onclick='document.forms.searchParameters.search.value=\"\"' />"; echo "</td>"; } ?> </tr> </tbody> </table> The bottom code is a search by characterbutton I want the top code (searchbox) to work like the characterbutton search where if you type in an artist that starts with "A" it only returns artists that start with the letter "A" type in the letter "B" it olnly returns artists that start with "B" etc.
  5. Sorry guys, this is a re-post just realized I posted the same thing previously, my apologies
  6. Hi, I am gonna try and explain this as clear and as best I can relating to what I want to do. I run an internet radio station (Legal) I use SAM Broadcaster. It has (2) search functions a search box where you type in text to search for an artist and the other uses character search letters A-Z. What I want to do is this. The first option (search box) if you type in a single letter....A, B, C etc the search returns everything based on the letter you type into the search box, but the character letters return a search of ONLY the letter you type in, if you click the letter A it returns ONLY artists that begin with A type in B and it returns ONLY artists that start with B , etc. Below is the code for the search box option: <div id="search"> <form method="get" action="playlist.php" name="searchParameters"> <!--Search: <?php InputText('search', $search, '',20); ?>--> <!--<input type="submit" value="Go" name="B1"/>--> <!-- Display <?php InputCombo('limit', $limit, 25, '5,10,25,50,100', "", "document.forms.searchParameters.submit();"); ?> results--> What I want to do is either convert the above code to work like the character button search: <table> <tbody> <tr> <td> <input type="submit" name="character" class="characterButton" value="All" onclick="document.forms.searchParameters.search.value=''"/> </td> <td> <input <?php echo "0 - 9" == $character? "id='activeCharacter'" : "";?> type="submit" name="character" class="characerButton"value='0 - 9'/> </td> <?php for($charVal = ord('A');$charVal <= ord('Z'); $charVal++) { $c = chr($charVal); echo "<td>"; echo "<input ".($character == $c? "id='activeCharacter'" : "")." type='submit' name='character' class='characterButton' value='$c' onclick='document.forms.searchParameters.search.value=\"\"' />"; echo "</td>"; } ?> </tr> </tbody> </table> I would like to have it where in search box, if you type in A it returns ONLY artists that start with A and if you type in B it returns ONLY aretist that start with B. Or simply edit the search character letters code (2nd code I listed) to work as a search box. Hope I explained it clear lol and sorry if I did not input the codes correctly, I am not really sure about code tags on suppor forums. Thanks in advance
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.