in reply to Search question
if ($form{searchtype} eq "keyword") { #check that what was filled in +the form was right if ($class =~ /keyword/) { #Check the class is type keyword if ($desc =~ /$form{'searchstring'}/i) { #Make sure the string + is in $desc if ($desc =~ /$form{'searchprice'}/) { #Check for price in + $desc print "$desc\n"; } } } }
if (($form{'searchtype'} eq "keyword") && ($class =~ /keyword/) && ($desc =~ /$form{'searchstring'}/i) && ($desc =~ /$form{'search +price'}/)) { print "$desc\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Search question
by SysAdm (Novice) on Mar 11, 2001 at 21:58 UTC | |
by dfog (Scribe) on Mar 11, 2001 at 22:42 UTC | |
by SysAdm (Novice) on Mar 12, 2001 at 01:16 UTC | |
by dfog (Scribe) on Mar 12, 2001 at 19:58 UTC |