aaa
aaaunknown
plain_text
3 years ago
1.1 kB
4
Indexable
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> </head> <body> <h2>Hesaplama Yapıyoruz</h2> <form action="veri.asp" method="get" > <label for="fname">Birinci sayı:</label><br> <input type="text" id="fname" name="a"> <br> <label for="lname">İkinci sayı:</label><br> <input type="text" id="lname" name="b" > <br><br> <input type="submit" > <br> <input type ="radio" name "işlem" value ="toplama"> Toplama <br> <input type ="radio" name "işlem" value ="cikarma"> Çıkarma <br> <input type ="radio" name "işlem" value ="bolme"> Bölme <br> <input type ="radio" name "işlem" value ="carpma"> Çarpma <br> </form> <% dim s1, s2 , top, i s1= (request.querystring("a")) s2= (request.querystring("b")) i= (request.querystring("islem")) if i ="toplama" then top=s1+s2 end if if i ="cikarma" then top=s1-s2 end if if i ="bolme" then top=s1/s2 end if if i ="carpma" then top=s1*s2 end if response.write("sonuc=" & top) %> </body> </html>
Editor is loading...