$newtypeid=$_REQUEST['newstype'];
$action = (isset($_REQUEST['action'])&& $_REQUEST['action'] !=NULL)?$_REQUEST['action']:'';
if($action == 'ajax'){
echo "newtypeid is".$newtypeid;
--------------
//some stuff here
}
How to get $newtypeid value inside if statement.