Hi All,
My URL is
http://localhost/project/insurance.php?link_id=NDI=
i want to get only insurance from the above url how can i do it ?
pls help
thanks.
Hi All,
My URL is
http://localhost/project/insurance.php?link_id=NDI=
i want to get only insurance from the above url how can i do it ?
pls help
thanks.
Hi Try this one
$StrUrl = "http://localhost/project/insurance.php?link_id=NDI=";
$Strvalue = explode("/",$StrUrl);
print "<Pre>";
print_r($Strvalue);
print "</Pre>";
$Strvalue1 = explode(".php",$Strvalue[count($Strvalue)-1]);
print "<Pre>";
print_r($Strvalue1);
print "</Pre>";
BaburajSNS
Securenext
Hi
we can do it with the
pathinfo method very easily.
$part_url = pathinfo($_SERVER;
print_r($part_url);
this will print insurance only that i exactly need.
Hi Try this one
$StrUrl = "http://localhost/project/insurance.php?link_id=NDI=";
$Strvalue = explode("/",$StrUrl);
print "<Pre>";
print_r($Strvalue);
print "</Pre>";$Strvalue1 = explode(".php",$Strvalue[count($Strvalue)-1]);
print "<Pre>";
print_r($Strvalue1);
print "</Pre>";
BaburajSNS
Securenext
ok, can we select only word NDI? i want to select informations with id (the same name in url (id=NDI)). please, help, thanks! :)
This:
$var = $_GET['id'];
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.