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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to