Didn't see an answer that I could use so I'm going to ask.
I have a query string that I've broken into an array of values by exploding on the "&" sign. So, I now have an array containing strings such as:
email=my_name@my_domain.com
name=Michael+D+Linear
name=Michael%20Linear
and numerous other strings as well.
What I need to be able to do is search through the array and find the "email" strings and the "name" strings and place the actual email address into a new variable, the first name into a variable and the last name into a variable.
Have no idea how to do it effectively.
The name will always be displayed in either the first or the second fashion - never both. So, one time the query string might contain the name in the First+Middle+Last format (might not have a middle name, but all portions of the name will be divided with a + sign instead of a space). Other times the name would have the spaces replaced with the %20 sign. Never both in the same query.
How do I search through the array, find the email and name strings and then extract them to new variables?
Thanks for any assistance. Been wracking my brain all morning on this. Can't quite get it.