Is there a way to identify different HTML pages using PHP, For example I want to know from which page data is submitted so that i can make some logic using PHP,
If i had a example.html & example2.html pages both submitting to logic.php, Now if the data comes from example.html
$data = Array();
$data['template'] $_POST['example'];
$data['template'] $_POST['example2'];
So the logic would be like
if(LOGIC){
$data['template'] $_POST['example'];
}else{
$data['template'] $_POST['example2'];
}
But I am not sure how to identyfie particular pages