RE: [PHP-DB] passing php variables with special characters

From: Date: Mon, 03 Jul 2000 20:44:55 +0000
Subject: RE: [PHP-DB] passing php variables with special characters
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-840@lists.php.net to get a copy of this message
Use the urlencode function. Vicky -----Original Message----- From: BENNETTM@cnbrown.com [mailto:BENNETTM@cnbrown.com] Sent: Monday, July 03, 2000 2:38 PM To: php-db@lists.php.net Subject: [PHP-DB] passing php variables with special characters Hello from a php newbie, How do I pass php variables that have special characters like spaces, pound signs, etc to other html pages? For example, If I have a php line that reads: echo "<a href=\"order.html?prod=$prod_desc\">$prod_desc</a>"; and $prod_desc can contain values like: "#3 Item" "LIFE SAVERS BULK" "JOHNSON & JOHNSON" when I view the variable results from the called page all I see is the text to the first space (or nothing in the case of the first one nothing because of the pound sign). Anyone know? Thanks for any valid input. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net For additional commands, e-mail: php-db-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.db (#840) next »