I have a php script that gets values from my mysql database. I have an add page which the form sends the data to the add2 page. On the add page, I have over 100 values from checkboxes. What I would like to do on the add2 page (before the data is added to the database) is check the names of the values for some character (ie. #) and if a value has a # in it, then strip everything before the # (including the #) for the value. ie. add passes 3 names to the add2 page; name1, something#name2 and somethingelse#name3. The add2 page then strips the names to become; name1, name2, name3 and then runs the rest of the page (adds data to database). I can do this value by value, but because there are so many, I was hoping that I can just have a small snipplet before the data is added.
thanks in advance.