Re: 2 questions: Search in array and detect JS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



js is client-side, php server side...
it can't work

fabien

 Chrome wrote:
 > How about
 >
 > <?php $js = true; ?>
 >
 > <noscript>
 >       <?php $js = false; ?>
 > </noscript>
 >
 > <?php
 > if ($js)      {
 >       // whizzy Ajax code (or file include)
 > } else {
 >       // generic warning (or include non-JS base file)
 > }
 > ?>
 >
 > I know that would work but does it give the desired effect?
 >
 > Dan
 >
 >
 > -------------------
 > http://chrome.me.uk

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux