1 / 15

M engenal dan teknik pembuatan form

Pemrograman Internet 1 STMIK PPKIA Pradnya Paramita. M engenal dan teknik pembuatan form. Mengenal Form. Form identik dengan formulir Form sangat dibutuhkan pada saat kita menginginkan adanya nilai (data) yang dipilih atau dimasukkan oleh pengguna Cara Kerja Form. Tag Dasar Form.

Download Presentation

M engenal dan teknik pembuatan form

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. Pemrograman Internet 1 STMIK PPKIA PradnyaParamita Mengenal dan teknik pembuatan form

  2. Mengenal Form • Form identikdenganformulir • Form sangat dibutuhkan pada saat kita menginginkan adanya nilai (data) yang dipilih atau dimasukkan oleh pengguna • Cara Kerja Form

  3. Tag Dasar Form • Untukmembuatsebuah Form dibutuhkanbeberapa tag danatribut HTML, diantaranyaadalah : • Tag <FORM ….> ……</FORM> • CONTOH : • <FORM name = “nama form” method = “POST/GET” action = “URL”> ……….elemen – elemen tag data form • </FORM>

  4. Atribut

  5. MetodePengiriman Data

  6. ProsesPengolahan Data • Terdapatduapendekatan yang dapatdigunakansebagaiacuanuntukprosespengolahanoleh server site scripting terhadap data-data yang dikirimkanmelalui action, yaitu : • Unidirectional (satuarah)

  7. ProsesPengolahan Data • 2. Bidirectional (duaarah)

  8. Elemen – elemen tag data form • Setiapelemen – elemenobjekdari tag – tag form merupakan media entri data. • Karakteristikdarielemenobjek form adalah : • Input • Select atauDaftar • Text Area atau Area Isian

  9. Tag Input Form • Sintakspenulisanelemenobjeknya : • <INPUT name = “X” type = “y” value = “z”>

  10. Tag Input Form • Tag input memilikibeberapabentukatau type yaitu : • Type TEXT Contohsintaksnya : <INPUT type = “text” name=“nama” size=“20” maxlength=“5”> • Type SUBMIT, RESET Contohsintaksnya : <INPUT type = “Submit” name=“submit” value = “KIRIM” > <INPUT type = “Reset” name=“reset” value = “UNDO” > • Type PASSWORD Contohsintaksnya : <INPUT type = “Password” name=“pwd” size=“8” maxlength= “10”>

  11. Tag Input Form • Type CHECKBOX Contohsintaksnya : <input type="checkbox" name= “hobi1” value="1"> Membaca <input type="checkbox" name= “hobi2” value="2"> DengerinMusik <input type="checkbox" name=“hobi3” value="3"> Shopping <input type="checkbox" name = “hobi4” value="4"> Berenang • Type RADIO Contohsintaksnya : JenisKelamin : <input type="radio" name="jk" value="L"checked>Laki-laki <input type="radio" name="jk" value="P">Perempuan

  12. Tag Input Form • Type FILE Contohsintaksnya : <input type=“file” name=“upload”> • Type BUTTON <input type = “button” name =“aksi” value = “proses” onclick=“”>

  13. Tag Select / Daftar • Tag select / drop down menu contohsintaksnya: • <select name="musik“ size = “1”> • <option selected value = "jazz">jazz</option> • <option value = "pop">pop</option> • <option value = "dangdut">dangdut</option> • </select>

  14. Text Area / isianpada form • Text Area sintaksnya • textarea rows="2" name="S1" cols="20">iniadalah text area, disinidapatmengisikan text dalamjumlahbanyak </textarea>

  15. Tugas

More Related