trim() white space from record set -
07-21-2004
, 01:25 PM
I created a search form with multiple search parameters. It returns nothing
if there is a space after their text entry or if they hit return in the text
area.
$coltitle_rsResults = "0";
if (isset($_GET['Title'])) {
$coltitle_rsResults = (get_magic_quotes_gpc()) ? $_GET['Title'] :
addslashes($_GET['Title']);
where do i put the trim?
trim($_GET['Title'] ????????correct?
I have tried it in several places to no avail.
THANKS!! |