Greetings,
I have searched these boards and haven't quite seen an answer to my dilemma.
I have a page that displays all messages preached(mostly in spanish). That works well.
Also, I have a drop down box on that page that dynamically displays the authors of those messages. That works well.
Question: I plan to have 30 messages displayed on the screen at most. How do I use the names in the dropdown box as a filter so that a user can view messages of that one author?
Code for drop down box and submit button
echo '<form method="post" action="messages.php">';
// creates drop down box form
echo '<select name="author_txt">';
echo '<option value="" selected>Choose Preacher</option>';
/*Generate List from mySql and chooses distinct names*/
while ( $row = mysql_fetch_array( $dlist_ ) )
{
$info_ = $row['author_txt'];
echo "<option value='$info_'>$info_</option>";
}
echo '</select>';
echo ' <input type="submit" VALUE="Submit">';
echo '</form>';
After this code I am at a loss how to proceed. Do I need another query? More php code? I have used these forums for other php tasks and have found the answers I needed. I am thankful for that. As you can see this is my first post for help.
Thanks in advance for any assistance.
Paul