I'm currently modifying a php controlled website and wish to distinguish between javascript and non-javascript browsers in order to decide which pages to display.
I have a single php controller script which "includes" a number of html pages. I want to ensure that I cater for both javascript and non-javascript browsers (so functionality is the same, only the javascript pages have a far better look and feel to them).

Therefore I would like to code something along the lines of :

Code:
if (javascript_browser=='true')
{
 include './javascript_page1.html.php';
 exit();
}
else
{
 include '.non_javascript_page1.html.php';
 exit();   
}
can anyone advise on the best way to achieve this please...