Your Daily Source for Apache News and Information  
Breaking News Preferences Contribute Triggers Link Us Search About
PHPBuilder: Storing Checkbox Data In Your Database
(Oct 20th, 20:28:30 )

"Checkboxes in web forms are useful because they allow the person filling out the form to choose from a wide range of possible choices. Specifically, it allows the user to choose some, all or none of the elements. Although checkboxes are excellent form elements for certain tasks, there is often confusion about how to store checkbox data correctly. This article will demonstrate how to store checkbox data in a database, in a manner that follows good database design principles."

"In this article, I will demonstrate the method of storing checkbox data on a per user basis. Although there is useable PHP source code included, I'm presenting this in a database design point of view. Therefore, the information here can be used with any database and server side scripting language of choice. The main idea here is to provide you with an explanation of how to do it so you can apply it to the sites you build. If you do want to play with the source code, you'll need php, mysql, and a webserver."

"Consider the following situation. You are asked to create a web site that will allow unemployed web developers to post their skills there. Potential employers can then visit this website and search for prospective employees, based on the skills they are looking for. As an aspiring web developer yourself, you know that a web programmer with work is more desirable than one without. Therefore, you decide to write the code for his site."

Complete Story

Related Stories:
PHP 4.0.3, Patch Level 1 Released(Oct 20, 2000)
European Unix Platform (EUP): Running PHP3 and 4 as simultaneous modules within Apache(Oct 14, 2000)
Community: PHP Congress Cologne(Oct 10, 2000)
PHPBuilder: COM Functions in PHP4 (Windows)(Oct 04, 2000)
PHPBuilder: Variable Variables, PHP, and You(Oct 01, 2000)
PHPBuilder: Timing Script Execution(Oct 01, 2000)
Why and How I Installed PHP4, MySQL, and Apache on Windows 98(Sep 27, 2000)


Printed from Apache Today (https://apachetoday.com).
https://apachetoday.com/news_story.php3?ltsn=2000-10-20-003-01-NW-SW

About Triggers Media Kit Security Triggers Login


All times are recorded in UTC.
Linux is a trademark of Linus Torvalds.
Powered by Linux 2.4, Apache 1.3, and PHP 4
Copyright 2002 INT Media Group, Incorporated All Rights Reserved.
Legal Notices,  Licensing, Reprints, & Permissions,  Privacy Policy.
http://www.internet.com/