Comparing not the exact of two values...
Posted: Thu Mar 09, 2006 11:04 pm
I'm trying to do an if statement like this:
The problem I'm having is spaces in my $_POST[search] are one problem what I mean when I say this is that the I'm trying to compare it with the $search (which is the keywords of each thing that my search engine is trying to search). I don't really know how to explain what I'm trying to explain so I'm just going to ask:
How would I make $_POST[search], when comparing it to $search, not compare the spaces and both $_POST and the $search strings.
I'll think about this more but I think I explained it good.
Thanks for reading and all help is appreciated. 
Code: Select all
if ($_POST['search'] == $search[$l]) {How would I make $_POST[search], when comparing it to $search, not compare the spaces and both $_POST and the $search strings.
I'll think about this more but I think I explained it good.