01<?php 02 03// if your url looks like this: 04// http://yourserver.com/thephpfile/edit/12376 05// $action = $urivars[2]; 06// $id = $urivars[3]; 07// will for example be like : 08// $action = "edit"; 09// $id = "12376"; 10 11$urivars=explode('/',$_SERVER['REQUEST_URI']); 12 13// to see all parts of the uri, do: 14echo'<pre>'; 15print_r($urivars); 16echo'</pre>'; 17 18?>