Re: Multi-Word Searches

From: Date: Tue, 02 Jul 2002 14:40:29 +0000
Subject: Re: Multi-Word Searches
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-104925@lists.php.net to get a copy of this message
Dave: On Tue, Jul 02, 2002 at 09:13:00AM -0400, Dave Rosenberg wrote: > > "xxxx.com/showkey.php?id=division&search=Bob%20Cobb". Within that new > page, you can sort the results by ID, and to do this I made the > hyperlink go to, for example, "showkey.php3?id=project&search=$search". > When I do this, however, it shortens the $search variable from "Bob > ... snip ... > echo "<tr><td width=255><b><font face=arial size=2> > <a href=showkey.php3?id=project&search=$search> Before echoing out the search string into the new uri, do this: $search = urlencode($search); Please read http://www.php.net/manual/en/function.urlencode.php to make sure you understand the nuances with this. Enjoy, --Dan -- PHP classes that make web design easier SQL Solution | Layout Solution | Form Solution sqlsolution.info | layoutsolution.info | formsolution.info T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409

« previous php.general (#104925) next »