erlug
[Top] [All Lists]

[Erlug] Mi manca una struttura di controllo del php?

To: ErLug - BoMo <erlug@xxxxxxxxxxxxxx>
Subject: [Erlug] Mi manca una struttura di controllo del php?
From: Francesco Gigli <spaghetti@xxxxxxxxx>
Date: 21 Jun 2002 14:53:29 +0200
Prima il sorgente..
---------------8<-html-&-php-------------------------

    <html>
     <title>
      Spaghetti :o)
     </title>
    <body>
     <? 
      echo "Stai usando $HTTP_USER_AGENT. <br>";
       
       if ($HTTP_USER_AGENT == "Windows") {
        echo "..Qui non sei benvenuto..";
       }
       
       else {
        echo "Benvenuto!";
       }
     
     ?>
    </body>
    </html>
    
---------------8<-html-&-php-------------------------

Il problema e' qui: $HTTP_USER_AGENT == "Windows"
che il controllo che desideravo usare non e' "==" ovvero "e' identico a"
ma un qualcosa di tipo "contiene anche" .. Esiste? Nel caso qual'e'?

     <?echo "Grazie infinite!!" ?>

Francesco, che sta imparando il <php>..

Attachment: signature.asc
Description: PGP signature

<Prev in Thread] Current Thread [Next in Thread>