I have used CURL concept for only data check the if user name password is correct then only allow into the desired application other wise says that username password is Invalid,So here I want If username ,password is correct and also bring in all menus,sub menus,(for example add a record/deleteion record/edit records using that menus[but we are run in local system(For example:d:\curl_program\index.php))in the server.
<?
$postfields=array();
foreach($_REQUEST as $key=>$values)
$postfields[$key]=$values;
$url=curl_init("http://www.neesoft.com/curls/index.php");
curl_setopt($url,CURLOPT_FOLLOWLOCATION,1);
curl_setopt($url,CURLOPT_POST,1);
curl_setopt($url,CURLOPT_POSTFIELDS,$postfields);
curl_setopt($url,CURLOPT_RETURNTRANSFER,1);
$q=curl_exec($url);
curl_close($url);
echo $q;
?>