Passing string variable gets cut off
| From: | Fates | Date: | Sun, 11 Mar 2001 15:16:43 +0000 |
| Subject: | Passing string variable gets cut off | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-43391@lists.php.net to get a copy of this message | ||
My strings are getting cut off when I pass to destination web page
Example:
Assign variable from database
$subcategory = mysql_result($result,$i,"subcategory");
Variable $subcategory is assigned "Graphic Editors" from database
(notice two words)
Next I make a link and pass the variables to new page when person clicks
link
<? echo "<a
href='addupdate.php?category=$category&subcategory=$subcategory
New page appears
The value of $subcategory is: Graphic It cut off everything after
Graphic, How do I fix that?