Thanks. I have it sorting and keeping the criteria. Next I want to be able to send the criteria to the next page, but I am going to try this on my own first. If I run into problems I will post them on the forum. Thanks for your suggestions on the htmlentities and the mysql_real_escape_string. These are things that don't always come out when one is looking at someone else's code.