1 / 15

HTML Formlar

HTML Formlar. <form name action method></form> Name formun adı Action formun gönderilecegi adres. Bu adres uzun URL yada lokaldeki CGI adresi Kullanılan method POST yada GET GET ile adres satırında değişkenler gözükür. POST ile adres satırında değişkenler gözükmez.

virgo
Download Presentation

HTML Formlar

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. HTML Formlar • <form name action method></form> • Name formun adı • Action formun gönderilecegi adres. • Bu adres uzun URL yada lokaldeki CGI adresi • Kullanılan method POST yada GET • GET ile adres satırında değişkenler gözükür. • POST ile adres satırında değişkenler gözükmez.

  2. Form İşleme – GET Metodu

  3. Form İşleme – GET Metodu

  4. Form İşleme – POST Metodu

  5. Form İşleme – POST Metodu

  6. Form Elemanları - Metin Kutu • <input type= "text" name= "kullanici" value= " " > • Metin girişi için kullanılır. • Maxlength özelligi ile girilen karakter sayısı sınırlanır.

  7. Form Elemanları - Metin Kutu • <input type= "password" name= "sifre" value= " " > • Şifreli metin girişi için kullanılır. • Maxlength özelligi ile girilen karakter sayısı sınırlanır.

  8. Form Elemanları - Buton • <input type= "submit" name= “b1" value= "Gönder" > • Formu göndermeye yarar.

  9. Form Elemanları - Buton • <input type= “button" name= “b2" value= “Kontrol" > • Genel amaçlı buton. • JavaScript fonksiyonu çagırabilir diğerleri gibi. • Örnegin onClick=“TestForm();” gibi

  10. Form Elemanları - Buton • <input type= “reset" name= “b3" value= “Temizle" > • Formu temizler.

  11. Form Elemanları – Radyo Buton • <input type= “radio" name= “cinsiyet" value= “E" > • Birden fazla seçenekten tekinin seçilmesi. • Checked özelliği ile başlangıçta seçili gelme.

  12. Form Elemanları – Onay Kutusu • <input type= “checkbox" name= “kitap" value= “roman" > • Birden fazla seçenegin aynı anda seçilmesi. • Checked özelliği ile başlangıçta seçili gelme.

  13. Form Elemanları – Onay Kutusu • <input type= “checkbox" name= “kitap[]" value= “roman" > • Dizi şeklinde gönderilirse birden fazla seçenek işlenebilir.

  14. Form Elemanları - Açılır Kutu • <select name="kardessayi"> • <option value="0" checked>Tek Çocuğum</option> • Checked ile başlangıçta seçili gelme.

  15. JavaScript Form İşleme • Form elemanlarına document.formadi.nesneadi.ozellik • Nesnenin özellik ve metodlarına erişilir.

More Related