Company LOGO Outline Html Form Querystring 2 Company

  • Slides: 37
Download presentation

Company LOGO Outline § �������� Html Form § �������� Querystring 2

Company LOGO Outline § �������� Html Form § �������� Querystring 2

Company LOGO Web Form § ����������� 4 �������� text box, list box , ������

Company LOGO Web Form § ����������� 4 �������� text box, list box , ������ (password) ������ check box, radio button, drop down list, list ������ submit, reset, button ������ hidden field ��� file upload

Company LOGO TEXT FORM ������� <input type=‘text’ name=‘tname’ size=‘ 20’ ������ maxlength=‘ 30’ value=‘hello’

Company LOGO TEXT FORM ������� <input type=‘text’ name=‘tname’ size=‘ 20’ ������ maxlength=‘ 30’ value=‘hello’ > ���������� <input type=‘password’ name=‘pwd’ size=‘ 20’ ���� password maxlength=‘ 30’> ������� <textarea name=‘tname’ cols=’ 30’ rows=‘ 5’> ����� Hello </textarea> 7

Company LOGO ������ HTML ���� summit <input type=‘submit’ name=‘bname’ value=‘ok’> ���� reset <input type=‘reset’

Company LOGO ������ HTML ���� summit <input type=‘submit’ name=‘bname’ value=‘ok’> ���� reset <input type=‘reset’ name=‘bname’ value=‘reset’> ������ <input type=‘button’ name=‘bname’ value=‘reset’> 9

Company LOGO ������ HTML ������ <button name=‘bname’ type=‘button’> <img src=‘image. gif’ title=‘preview’> </button> 10

Company LOGO ������ HTML ������ <button name=‘bname’ type=‘button’> <img src=‘image. gif’ title=‘preview’> </button> 10

Company LOGO FORM & BUTTON <html> <form name=‘fname’ method=‘post’ action=‘script. php’> <input type=‘submit’ name=‘bsubmit’

Company LOGO FORM & BUTTON <html> <form name=‘fname’ method=‘post’ action=‘script. php’> <input type=‘submit’ name=‘bsubmit’ value=‘ok’> <input type=‘reset’ name=‘breset’ value=‘reset’> </form> </html> 11

Company LOGO ���� 12

Company LOGO ���� 12

Company LOGO ������ FORM <html> <form name=‘formname’ method=‘post’ action=‘script. php’> // �������� </form> </html>

Company LOGO ������ FORM <html> <form name=‘formname’ method=‘post’ action=‘script. php’> // �������� </form> </html> 16

Company LOGO การสงขอมลดวย Html Form Php 2 -2. php <html> <body> ชอ <? echo

Company LOGO การสงขอมลดวย Html Form Php 2 -2. php <html> <body> ชอ <? echo $name; ? > นามสกล <? echo $surname; ? > </body> </html> Out Put 19

Company LOGO ����� 1 page 1. php page 2. php Name ���� Surname �������

Company LOGO ����� 1 page 1. php page 2. php Name ���� Surname ������� Address Submit � xxxxx ���� � Xxxxx �� ��xxxxx �� � Cancel 20

Company LOGO RADIO FORM § ������������ 21

Company LOGO RADIO FORM § ������������ 21

Company LOGO RADIO FORM <input type='radio' name=‘rname' value='1'> One <input type='radio' name='rname' value='2'> Two

Company LOGO RADIO FORM <input type='radio' name=‘rname' value='1'> One <input type='radio' name='rname' value='2'> Two 22

Company LOGO Drop down list ���� Combo box § ������� list ����� § selected=‘selected’

Company LOGO Drop down list ���� Combo box § ������� list ����� § selected=‘selected’ ����������� 23

Company LOGO SELECT FORM <select name=‘sname’> <option value=‘ 1’> One </option> <option value=‘ 2’

Company LOGO SELECT FORM <select name=‘sname’> <option value=‘ 1’> One </option> <option value=‘ 2’ selected=‘selected’> Two </option> <option value=‘ 3’> Three </option> </select> 24

Company LOGO SELECT FORM <html> <form name=‘fname’ method=‘post’ action=‘script. php’> <select name=‘id’> <option value=‘

Company LOGO SELECT FORM <html> <form name=‘fname’ method=‘post’ action=‘script. php’> <select name=‘id’> <option value=‘ 48’> 48 xxxxxx </option> <option value=‘ 49’ selected=‘selected’> 49 xxxxxx </option> <option value=‘ 50’> 50 xxxxxx </option> </select> <input type=‘submit’ name=‘bsubmit’ value=‘ok’> <input type=‘reset’ name=‘breset’ value=‘reset’> </form> </html> 25

Company LOGO CHECKBOX FORM <input type='checkbox' name='number[0]' value='1'> ONE <input type='checkbox' name='number[1]' value='2' >

Company LOGO CHECKBOX FORM <input type='checkbox' name='number[0]' value='1'> ONE <input type='checkbox' name='number[1]' value='2' > TWO <input type='checkbox' name='number[2]' value='3'> THREE 27

Company LOGO �������� GET <? php $username=$_GET[username]; $password=$_GET[password]; ? > 29

Company LOGO �������� GET <? php $username=$_GET[username]; $password=$_GET[password]; ? > 29

Company LOGO �������� POST <? php $username=$_POST[username]; $password=$_POST[password]; ? > 30

Company LOGO �������� POST <? php $username=$_POST[username]; $password=$_POST[password]; ? > 30

Company LOGO POST <? php $namestudent=$_POST[name]; $idstudent=$_POST[id]; echo “ NAME $namestudent”; echo “ STUDENT

Company LOGO POST <? php $namestudent=$_POST[name]; $idstudent=$_POST[id]; echo “ NAME $namestudent”; echo “ STUDENT ID $idstudent”; ? > 31

Company LOGO GET <? php $namestudent=$_GET[name]; $idstudent=$_GET[id]; echo “ NAME $namestudent”; echo “ STUDENT

Company LOGO GET <? php $namestudent=$_GET[name]; $idstudent=$_GET[id]; echo “ NAME $namestudent”; echo “ STUDENT ID $idstudent”; ? > 32