troubleshooting Question

php mysql strip value

Avatar of newbe101
newbe101 asked on
PHPMySQL ServerWeb Applications
21 Comments1 Solution646 ViewsLast Modified:
Hi all,
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.
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 21 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 21 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros