PHP Or? (alternate navigation)
Posted: Fri Feb 17, 2012 2:02 pm
Hi guys,
I'm almost finished with the base layout for my website, and now comes the question, I'm currently using AJAX for my navigation to get a non-total-refresh of site content.
but I know that some people don't have javascript / java enabled on their pc's (example my job computer..).
So I was thinking, can you give me an advice on how I can create a PHP code that checks for if there's javascript enabled <noscript>, and if it's true it should load a normal PHP navigation. if not true, then load AJAX Navigation ?
I don't want an actually script, just hints of what I need to use in code.
And the other part is, how can I create a safe navigation in PHP?
I know there's the $GET function, but I've heard it's unsafe to use this. So anybody a heads up on how to create a PHP Navi with a secure check?
I'm almost finished with the base layout for my website, and now comes the question, I'm currently using AJAX for my navigation to get a non-total-refresh of site content.
but I know that some people don't have javascript / java enabled on their pc's (example my job computer..).
So I was thinking, can you give me an advice on how I can create a PHP code that checks for if there's javascript enabled <noscript>, and if it's true it should load a normal PHP navigation. if not true, then load AJAX Navigation ?
I don't want an actually script, just hints of what I need to use in code.
And the other part is, how can I create a safe navigation in PHP?
I know there's the $GET function, but I've heard it's unsafe to use this. So anybody a heads up on how to create a PHP Navi with a secure check?