I have category and criteria dropdowns on a page that gets the data and populates a form. Each of the rows has an edit link that takes the user to another page where they can edit the data of the chosen member. Once the category and criteria are chosen I would like the variables to be maintained within the boxes until changed by the user. Currently they default to original after submit and the user has to go back each time and reenter the category and criteria.
Thanks, Readie, for this. I have some questions, however. I should have mentioned that I am an newbie with php. Most of the code I have been using has been cobbled together from Google. I am not sure where to put the session code. I looked as if it should go after my <form> code and before the category drop down. I tried that but it would not retrieve my data and gave me this message: PHP Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /hermes/bosoraweb124/b180/ipg.daughtershcorg/DaughtersHC/source/EditMember.php:18) in /hermes/bosoraweb124/b180/ipg.daughtershcorg/DaughtersHC/source/EditMember.php on line 20 I am sure it is not in the right place now. so here is my code now. Can you help me with where to insert your code? Thanks.
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.