Cuma , 29 Mart 2024

Açık Lise İnternet Programcılığı Dersi Örneği


PHP’de Form Uygulaması

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml”>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″ />
<title>Untitled Document</title>
</head>

<body>
<form id=”form1″ name=”form1″ method=”post” action=”donguolusturalim.php”>
<table width=”600″ border=”1″ align=”center” cellpadding=”0″ cellspacing=”0″>
<tr>
<td colspan=”2″ align=”center”>DÖNGÜ DEĞERLERİNİ GİRİNİZ</td>
</tr>
<tr>
<td width=”194″>BAŞLANGIÇ DEĞERİ</td>
<td width=”400″><label for=”basdeger”></label>
<select name=”basdeger” id=”basdeger”>
<option value=”1″>1</option>
<option value=”2″>2</option>
<option value=”3″>3</option>
<option value=”4″>4</option>
<option value=”100″>100</option>
<option value=”500″>500</option>
<option value=”700″>700</option>
<option value=”1000″>1000</option>
</select></td>
</tr>
<tr>
<td>BİTİŞ DEĞERİ</td>
<td><label for=”bitdeger”></label>
<select name=”bitdeger” id=”bitdeger”>
<option value=”5″>5</option>
<option value=”500″>500</option>
<option value=”200″>200</option>
<option value=”300″>300</option>
<option value=”1000″>1000</option>
<option value=”2000″>2000</option>
</select></td>
</tr>
<tr>
<td>ARTIŞ MİKTARI</td>
<td><label for=”artis”></label>
<select name=”artis” id=”artis”>
<option value=”1″>1</option>
<option value=”2″>2</option>
<option value=”3″>3</option>
<option value=”4″>4</option>
<option value=”5″>5</option>
<option value=”6″>6</option>
<option value=”7″>7</option>
<option value=”8″>8</option>
<option value=”9″>9</option>
</select></td>
</tr>
<tr>
<td colspan=”2″ align=”center”><input type=”submit” name=”button” id=”button” value=”GÖNDER” />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type=”reset” name=”button2″ id=”button2″ value=”VAZGEÇ” /></td>
</tr>
</table>
</form>
</body>
</html>

EKRAN ÇIKTISI

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml”>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″ />
<title>Untitled Document</title>
</head>

<body>
<?php
$gbasdeger=$_POST[“basdeger”];
$gbitisdeger=$_POST[“bitdeger”];
$gartis=$_POST[“artis”];

for($k=$gbasdeger;$k<=$gbitisdeger;$k+=$gartis)
{
print $k.”<br>”;
}
?>
</body>
</html>

Bu Konuda İlginizi Çekebilir

Sosyal Medya Dersi Çalışma Soruları

Sosyal Medya Dersi Sınavı Çalışma Soruları SOSYAL MEDYA DERSİ 2. DÖNEM 1. YAZILI SINAVI ÇALIŞMA …