28 Ocak 2014 Salı

PHP-Plaka koduna göre İli Bulma Programı

 
 


<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<meta name=”author” Content=”Cüneyt KORKUSUZ” />

<title>Plakaya göre İli bulma</title>

</head>

 

<body>

<form id="form1" name="form1" method="post" action="">

  <table width="400" border="1" align="center" cellpadding="1" cellspacing="1">

    <tr>

      <td colspan="2" align="center"><p><strong>PLAKA BULMA</strong></p></td>

    </tr>

    <tr>

      <td height="43">plaka giriniz=</td>

      <td><label for="kutu1"></label>

      <input type="text" name="kutu1" id="kutu1" /></td>

    </tr>

    <tr>

      <td height="41" colspan="2" align="center"><input type="submit" name="button" id="button" value="bul" /></td>

    </tr>

    <tr>

      <td height="41" colspan="2" align="center">İlin adı =

      

     <?php

                

                 $plaka=$_POST["kutu1"];

                 switch ($plaka)

 

{

                 case 01;

                 echo "adana";

                 break;

 

                 case 02;

                 echo "adıyaman";

                 break;

                case 03;

                 echo "afyon";

                 break;

 

                 case 04;

                 echo "agrı";

                 break;

 

                 case 05;

                 echo "amasya";

                 break;

 

                 case 06;

                 echo "ankara";

                 break;

                 case 07;

                 echo "antalya";

                 break;

 

                 case 14;

                 echo "bolu";

                 break;

 

                 case 81;

                 echo "duzce";

                 break;

 

                 case 28;

                 echo "giresun";

                 break;

 

                 case 67;

                 echo "Zonguldak";

                 break;

 

                 case 54;

                 echo "adapazarı";

                 break;

 

                 case 44;

                 echo "malatya";

                 break;

}

                

                 ?>

     

      </td>

    </tr>

  </table>

  <p>&nbsp;</p>

</form>

</body>

</html>

 

Hiç yorum yok :

Yorum Gönder

Yorumunuz uygun bulunduğu takdirde en kısa zamanda yayınlanacaktır.