this is the link: <a href=\"index.php?catid=$catid&subid=Business_general/CRM-news\"> CRM</a>
$subid = $HTTP_GET_VARS['subid'] ;
-- //$subid="Business_general/CRM-news"
thanks
use $subid = explode("/",$HTTP_GET_VARS['subid'] );
this returns a array
and u can reference the part you want like so
echo $subid(1)
Originally posted by irsim1981 use $subid = explode("/",$HTTP_GET_VARS['subid'] ); this returns a array and u can reference the part you want like so echo $subid(1) -- //$subid="Business_general/CRM-news" //How do i get rid of the all characters before the / thanks
Originally posted by irsim1981 use $subid = explode("/",$HTTP_GET_VARS['subid'] ); this returns a array and u can reference the part you want like so echo $subid(1) -- //$subid="Business_general/CRM-news"
not quite... arrays are accessed using $arrayname[indexnumber/key] VB arrays are accessed using varname(indexnumber/key)
and just for refenrece $HTTP_GET_VARS was replaced with $_GET['varname'] in PHP4+ I believe.... (www.php.net will tell you which exact version)