thanks for all the replies
I have another problem..
I'm trying to make a function where if people check checkboxes, their values add to a string.
Lets say I get the following string:
'checkbox1, checkbox2, checkbox3'
(I added COMMASPACE after each one too)
This part works. I then want to search another string for any of the values seperated via the comma (and space).. So say I'm searching in the string:
'If this string contains checkbox1, checkbox2 or checkbox3 I'll return true'
if it contains any of checkbox1 checkbox2 or checkbox3 it will return true.
I don't know if how to string search for 'words'.. if I can do that I think it will be the best.
If I can't do that I was thinking I'll separate the words giving each it's own variable (via a while loop).. something like
string_$i = $row['checkbox']
I'm reading the checkbox values from a database (this is an addon to what I was doing at the start of this thread)
Thanks again, you guys are awesome