how can i catch the http title in PHP. i.e. if the URL is http://www.domain.com?action=add ,how to catch the action variable. Similarly, if the URL is http://www.domain.com?action=delete ,i want to catch it. Please help.
In the above cases, the variable $action will be available and set to either "add" or "delete". So, you could use a switch:
switch ($action) { case "add": doSomeAdding(); break;
case "delete": doSomeDeleting(); break; }
Simple as that...