Visualizzazione dei risultati da 1 a 4 su 4
  1. #1

    If browser = internet explorer

    ho un'area privata a cui devo impedire l'accesso agli utenti che usano IE (non mi dilungo a spiegarne i motvi).

    come devo fare?

    if( ? = ?) { nn puoi accedere }


    più ke altro mi preoccupa che la condizione debba valere per qualsiasi sia la versione di IE.


    thx
    http://codecanyon.net/category/all?ref=Manuelandro
    And I bet she told a million people that she'd stay in touch, Well all the little promises they dont mean much,When theres
    memories to be made

  2. #2
    Utente di HTML.it L'avatar di zakros
    Registrato dal
    Oct 2000
    Messaggi
    509
    Io uso questo :

    if(preg_match('/MSIE/i', $_SERVER['HTTP_USER_AGENT'])) {
    echo "sono IE";
    }
    echo "non sono IE";

  3. #3
    grazie mille!

    mentre se volessi specificare ke deve essere Firefox proprio?

    al posto di MSIE cosa va? grazie ancora!
    http://codecanyon.net/category/all?ref=Manuelandro
    And I bet she told a million people that she'd stay in touch, Well all the little promises they dont mean much,When theres
    memories to be made

  4. #4
    Utente di HTML.it L'avatar di zakros
    Registrato dal
    Oct 2000
    Messaggi
    509
    if(preg_match('/firefox/i', $_SERVER['HTTP_USER_AGENT'])) {
    echo "sono FF";
    }


Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.