1 / 102

WHY FORMS?

WHY FORMS?. FORM CONTROLS. HOW FORMS WORK. 1: User fills in form and presses button to submit info to server. HOW FORMS WORK. 2: Name of each form control sent with value user entered. HOW FORMS WORK. 3: Server processes information using programming language. HOW FORMS WORK.

kirst
Download Presentation

WHY FORMS?

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. WHY FORMS?

  2. FORM CONTROLS

  3. HOW FORMS WORK 1: User fills in form and presses button to submit info to server

  4. HOW FORMS WORK 2: Name of each form control sent with value user entered

  5. HOW FORMS WORK 3: Server processes information using programming language

  6. HOW FORMS WORK 4: Server creates new page to send back to the browser based on info received

  7. NAME & VALUE PAIRS username=Ivy

  8. NAME NAME & VALUE PAIRS username=Ivy

  9. NAME VALUE NAME & VALUE PAIRS username=Ivy

  10. FORM STRUCTURE <form action="http://example.com/join.php" method="get"> This is where the form controls will appear.</form>

  11. FORM STRUCTURE <formaction="http://example.com/join.php" method="get"> This is where the form controls will appear.</form>

  12. FORM STRUCTURE <form action="http://example.com/join.php"method="get"> This is where the form controls will appear.</form>

  13. TEXT INPUT <form action="http://example.com/join.php"> <input type="text" name="username" size="15" maxlength="30" /></form>

  14. TEXT INPUT <form action="http://example.com/join.php"> <input type="text" name="username" size="15" maxlength="30" /></form>

  15. TEXT INPUT <form action="http://example.com/join.php"> <input type="text" name="username" size="15" maxlength="30" /></form>

  16. TEXT INPUT <form action="http://example.com/join.php"> <input type="text" name="username"size="15" maxlength="30" /></form>

  17. TEXT INPUT <form action="http://example.com/join.php"> <input type="text" name="username" size="15" maxlength="30" /></form>

  18. PASSWORD <p>Username: <input type="text" name="username" size="15" maxlength="30" /></p><p>Password: <input type="password" name="password" size="15" maxlength="30" /></p>

  19. PASSWORD <p>Username: <input type="text" name="username" size="15" maxlength="30" /></p><p>Password: <input type="password" name="password" size="15" maxlength="30" /></p>

  20. TEXTAREA <p>What did you think of this gig?</p><textarea name="comments" cols="20" rows="4">Enter your comments...<textarea/>

  21. TEXTAREA <p>What did you think of this gig?</p><textarea name="comments" cols="20" rows="4"> Enter your comments...<textarea/>

  22. TEXTAREA <p>What did you think of this gig?</p><textarea name="comments"cols="20" rows="4"> Enter your comments...<textarea/>

  23. TEXTAREA <p>What did you think of this gig?</p><textarea name="comments" cols="20" rows="4"> Enter your comments...<textarea/>

  24. RADIO BUTTON <p>Your favorite genre:<br /> <input type="radio" name="genre" value="rock" checked="checked" /> Rock <input type="radio" name="genre" value="pop" /> Pop <input type="radio" name="genre" value="jazz" /> Jazz</p>

  25. RADIO BUTTON <p>Your favorite genre:<br /> <input type="radio" name="genre" value="rock" checked="checked" /> Rock <input type="radio" name="genre" value="pop" /> Pop <input type="radio" name="genre" value="jazz" /> Jazz</p>

  26. RADIO BUTTON <p>Your favorite genre:<br /> <input type="radio" name="genre" value="rock" checked="checked" /> Rock <input type="radio" name="genre" value="pop" /> Pop <input type="radio" name="genre" value="jazz" /> Jazz</p>

  27. RADIO BUTTON <p>Your favorite genre:<br /> <input type="radio" name="genre"value="rock" checked="checked" /> Rock <input type="radio" name="genre"value="pop" /> Pop <input type="radio" name="genre"value="jazz" /> Jazz</p>

  28. RADIO BUTTON <p>Your favorite genre:<br /> <input type="radio" name="genre" value="rock" checked="checked" /> Rock <input type="radio" name="genre" value="pop" /> Pop <input type="radio" name="genre" value="jazz" /> Jazz</p>

  29. CHECKBOX <p>Your favorite music service:<br /> <input type="checkbox" name="service" value="iTunes" checked="checked" /> iTunes <input type="checkbox" name="service" value="Last.fm" /> Last.fm <input type="checkbox" name="service" value="Spotify" /> Spotify</p>

  30. CHECKBOX <p>Your favorite music service:<br /> <input type="checkbox" name="service" value="iTunes" checked="checked" /> iTunes <input type="checkbox" name="service" value="Last.fm" /> Last.fm <input type="checkbox" name="service" value="Spotify" /> Spotify</p>

  31. CHECKBOX <p>Your favorite music service:<br /> <input type="checkbox" name="service" value="iTunes" checked="checked" /> iTunes <input type="checkbox" name="service" value="Last.fm" /> Last.fm <input type="checkbox" name="service" value="Spotify" /> Spotify</p>

  32. CHECKBOX <p>Your favorite music service:<br /> <input type="checkbox" name="service"value="iTunes" checked="checked" /> iTunes <input type="checkbox" name="service"value="Last.fm" /> Last.fm <input type="checkbox" name="service"value="Spotify" /> Spotify</p>

  33. CHECKBOX <p>Your favorite music service:<br /> <input type="checkbox" name="service" value="iTunes"checked="checked" /> iTunes <input type="checkbox" name="service" value="Last.fm" /> Last.fm <input type="checkbox" name="service" value="Spotify" /> Spotify</p>

  34. DROP DOWN LIST BOX <select name="devices"> <option value="iPod" selected="selected">iPod</option> <option value="radio">Radio</option> <option value="PC">Computer</option></select>

  35. DROP DOWN LIST BOX <select name="devices"> <option value="iPod" selected="selected">iPod</option> <option value="radio">Radio</option> <option value="PC">Computer</option></select>

  36. DROP DOWN LIST BOX <select name="devices"><option value="iPod" selected="selected">iPod</option> <option value="radio">Radio</option> <option value="PC">Computer</option></select>

  37. DROP DOWN LIST BOX <select name="devices"> <option value="iPod" selected="selected">iPod</option> <option value="radio">Radio</option> <option value="PC">Computer</option></select>

  38. DROP DOWN LIST BOX <select name="devices"> <option value="iPod" selected="selected">iPod</option> <option value="radio">Radio</option> <option value="PC">Computer</option></select>

  39. DROP DOWN LIST BOX <select name="devices"> <option value="iPod"selected="selected">iPod</option> <option value="radio">Radio</option> <option value="PC">Computer</option></select>

  40. MULTIPLE SELECT BOX <select name="devices" size="4"> <option value="guitar" selected="selected">Guitar</option> <option value="drums">Drums</option> <option value="keys" selected="selected">Keyboard</option> <option value="bass">Bass</option></select>

  41. MULTIPLE SELECT BOX <select name="devices" size="4"> <option value="guitar" selected="selected">Guitar</option> <option value="drums">Drums</option> <option value="keys" selected="selected">Keyboard</option> <option value="bass">Bass</option></select>

More Related