Konuyu görüntüle
IUCODERS FORUM > Duyurular > Okul ile ilgili > Web Programlama Final
Yazar
thesilver


avatar
Yalova
Kayıt: 13.02.2006
03.06.2010-01:40 #69330
Bu formumuz... Final sorularının 2,3 ve 5. soruları için bu formu kullanıcaz...

<!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>form.htmlt</title>
</head>
<body>
<form action="post.php" method="POST" />
	<table border="0" cellpadding="0" cellspacing="0" id="table1" width="75%" style="height:126px;width:29px">
    	<tr>
        	<td>İsim:  </td>
            <td><input type="text" name="isim"/></td>
        </tr>
        <tr>
        	<td>Telefon:  </td>
            <td><input type="text" name="tel"/></td>
        </tr>
        <tr>
        	<td>Departman:  </td>
            <td><input type="text" name="dept"/></td>
        </tr>
        <tr>
        	<td>Maaş:  </td>
            <td><input type="text" name="maas"/></td>
        </tr>
        <tr>
        	<td></td>
            <td><input type="submit" value="gönder"/></td>
        </tr>
     </table>		
</form>
</body>
</html>






Those were the days guys, those were the days...








Yazar
thesilver


avatar
Yalova
Kayıt: 13.02.2006
03.06.2010-01:41 #69331
5. soru PHP için cevap:

<!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>post.php</title>
</head>
<body>
<?php 
		$isim = $_POST['isim'];
		$dept = $_POST['dept'];
		$tel = $_POST['tel'];
		$maas = $_POST['maas'];		
		
		$output = fopen('output.txt','w+');		
		
		fwrite($output,$isim);
		fwrite($output,$dept);
		fwrite($output,$tel);
		fwrite($output,$maas);		
		
		fclose($output);
?>
		

</body>
</html>






Those were the days guys, those were the days...








Yazar
thesilver


avatar
Yalova
Kayıt: 13.02.2006
03.06.2010-01:49 #69332
Doğruluğundan emin olmamakla birlikte 3. soru ASP için cevabı:


İlk olarak formumuzun 8. satırındaki post.php'yi post.asp yapmamız gerekiyor

<form action="post.asp" method="POST" />




<html>
<head>
<title>post.asp</title>
</head>
<body>
<% 
		dim fs,fname
		
		set fs=Server.CreateObject("Scripting.FileSystemObject")
		set fname=fs.CreateTextFile("c:	est.txt",true)
		
		isim = request.Form("isim")
		dept = request.Form("dept")
		tel = request.Form("tel")
		maas = request.Form("maas")
		
		fname.WriteLine(isim)
		fname.WriteLine(dept)
		fname.WriteLine(tel)
		fname.WriteLine(maas)
		
		fname.Close
		
		set fname=nothing
		set fs=nothing
%>
		

</body>
</html>






Those were the days guys, those were the days...








1 2
Del.icio.us
Digg
Facebook
Furl
Google
Blink
Simpy
Spurl
Y! MyWeb