Browse > Home / ASP / ASP’de CheckBox

| Subcribe via RSS

ASP’de CheckBox

Ağustos 30th, 2008 Posted in ASP

Aynı radio butonları gibidir Kullanıcıya seçenekler sunulur ve bunlardan birini birkaçını hepsini yada hiçbirini seçmesi istenir .Hemen bir örnek yapalım.

<html>
<head>
<meta http-equiv=”Content-Type” content=”text/html;charset=ISO-8859-9″>
<meta http-equiv=”Content-Type” content=”text/html;charset=windows-1254″><title>Checkbox</title>
</head>
<body >
<form action=”checkbox2.asp” method=”post”>
<p>Sitemde en çok girdiğiniz bölüm hangisidir.</p>
<input TYPE=”checkbox” NAME=”asp”>ASP<br>
<input TYPE=”checkbox” NAME=”html”>HTML<br>
<input TYPE=”checkbox” NAME=”flash” >FLASH<br>
<input TYPE=”checkbox” NAME=”java”>JAVASCRIPT<br>
<input TYPE=”checkbox” NAME=”prog” >PROGRAMLAMA<br><br>
<input type=”submit” value=”gönder”>
</form>
</body>
</html>

Şimdi de ikinci sayfamızı yapalım

<html>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=ISO 8859-8″>
<meta http-equiv=”Content-Type” content=”text/html; charset=windows-1254″>
<title>Radio butonları</title>
</head>
Seçtiğiniz bölümler
<% if request.form(”asp”)=”on” then response.write(”ASP”) end if
if request.form(”html”)=”on” then response.write(”HTML”) end if
if request.form(”flash”)=”on” then response.write(”FLASHL”) end if
if request.form(”java”)=”on” then response.write(”JAVASCRIPT”) end if
if request.form(”prog”)=”on” then response.write(”PROGRAMLAMA”) end if
%>
Verdiğiniz Bilgiler için Teşekkürler.
</html>

Beğendiysen Paylaş veya Bişeyler Karala Yorumlara =)
  • Facebook
  • TwitThis
  • Google
  • YahooMyWeb
  • Live
  • Print this article!
  • E-mail this story to a friend!
  • MySpace
  • Sphinn
  • Digg
  • del.icio.us
  • Mixx

Leave a Reply