Introduction to PHP for Scientists and Engineers by David R. Brooks
Author:David R. Brooks
Language: eng
Format: epub
Publisher: Springer London, London
3.4.2 Reading checkbox Values
The HTML <input type="checkbox" …/> form field is used to associate several possible values with a single form field name. Unlike a type="radio" field, which allows only one selection from a list, checkboxes allow multiple values to be selected. Consider this problem:
Document 3.11a (CloudObs.htm) <html> <head> <title>Cloud Observations</title> </head> <body bgcolor="#aaddff"> <h1>Cloud Observations</h1> <strong> Cloud Observations </strong>(Select as many cloud types as observed.) <br /> <form method="post" action="CloudObs.php" /> <table> <tr> <td><strong>High</strong> </td> <td> <input type="checkbox" name="high[]" value="Cirrus" /> Cirrus</td> <td> <input type="checkbox" name="high[]" value="Cirrocumulus" /> Cirrocumulus </td> <td> <input type="checkbox" name="high[]" value="Cirrostratus" /> Cirrostratus </td></tr> <tr> <td colspan="4"><hr noshade color="black" /> </td></tr> <tr> <td> <strong>Middle</strong> </td> <td> <input type="checkbox" name="mid[]" value="Altostratus" /> Altostratus </td> <td> <input type="checkbox" name="mid[]" value="Altocumulus" /> Altocumulus</td></tr> <tr> <td colspan="4"><hr noshade color="black" /> </td></tr> <tr> <td> <strong>Low</strong></td> <td> <input type="checkbox" name="low[]" value="Stratus" /> Stratus</td> <td> <input type="checkbox" name="low[]" value="Stratocumulus" /> Stratocumulus</td> <td> <input type="checkbox" name="low[]" value="Cumulus" /> Cumulus </td></tr> <tr> <td colspan="4"><hr noshade color="black" /> </td></tr> <tr> <td> <strong>Rain-Producing </strong> </td> <td> <input type="checkbox" name="rain[]" value="Nimbostratus" /> Nimbostratus</td> <td> <input type="checkbox" name="rain[]" value="Cumulonimbus" /> Cumulonimbus </td></tr> </table> <input type="submit" value="Click to process..." /> </form> </body> </html>
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Deep Learning with Python by François Chollet(12566)
Hello! Python by Anthony Briggs(9911)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(9795)
The Mikado Method by Ola Ellnestam Daniel Brolund(9775)
Dependency Injection in .NET by Mark Seemann(9336)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(8293)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(7758)
Grails in Action by Glen Smith Peter Ledbrook(7693)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(7557)
Becoming a Dynamics 365 Finance and Supply Chain Solution Architect by Brent Dawson(7027)
Microservices with Go by Alexander Shuiskov(6794)
Practical Design Patterns for Java Developers by Miroslav Wengner(6706)
Test Automation Engineering Handbook by Manikandan Sambamurthy(6647)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(6409)
Angular Projects - Third Edition by Aristeidis Bampakos(6055)
The Art of Crafting User Stories by The Art of Crafting User Stories(5586)
NetSuite for Consultants - Second Edition by Peter Ries(5519)
Demystifying Cryptography with OpenSSL 3.0 by Alexei Khlebnikov(5321)
Kotlin in Action by Dmitry Jemerov(5062)
