I didn't get a proper solution for this issue. the URL should be like
here I need to process the the value xyz in http://mydomain.com/poem/index.php, and accordingly I need to take some actions.
Is it possible with php or through jquery?
You could create a mod_rewrite rule that redirects all request to this directory structure to your index.php and sends you the mentioned part of the URL as a GET variable to the script.
If I understand correct this can be done by sending a GET request. GET requests send data via the URL and can be picked up with PHP.
to pass data via the url you can set a link like this
<a href="http://www.mysite.com/index.php?page_id=2"> Page Link </a>
Anything after the question mark will be passed over. To send more than 1 value use
www.mysite.com/index.php?page_id=2&search=string
now you can use some PHP in index.php to pick up your passed variable via GET request using
<?php
$_GET['page_id'];
$_GET['search'];
?>
and from here you can perform conditional statements etc...
<?php if($_GET['page_id'] == 2)
echo "2nd Page ID...";
?>
You can also check to see if a $_GET[] variable has been set using
<?php
if(isset($_GET['page_id'])) {
echo "page id has been set to".$_GET['page_id'];
} else echo "Page id has not been set";
?>