Hi, ( Thanks for any help in advance ) I am still learning php and if some one could help i would be very grateful, cheers. I have a menu system and it displays on my tabs correctly but when i hover over the Names with Two words ( eg: Brown Bread ) It only shows &cat=Brown ( In my URL ) $link = 'index.php?area=mypage&cat='; $html .= '<li><a href='.$link.''.$menuData['items'][$itemId]['name'].'>' .$menuData['items'][$itemId]['name']; // find childitems recursively $html .= buildMenu($itemId, $menuData); $html .= '</a></li>'; PHP: Can any one please help as to how i can keep the full two words showing in my link please? I want it to show &cat=Brown Bread ( In my URL ) I have tried variations of "\" "\" and '\' '\' But it either shows me an error or just adds it to the link URL.
Hi Amaroks, You are great! I did this and it works, <a href='.$link.''.(urlencode($menuData['items'][$itemId]['name'])).'>' PHP: Question though... It now ads + symbols where there is space. Brown+Bread How will i remove this Plus Symbol when Inserting a new entry into the table?
http://php.net/manual/en/function.str-replace.php that would be what i would use. $string = str_replace("+", " ", $_GET['cat']); PHP: that code may not work, but i linked you to the function itself