FARINSPACE
Practical Real World Web Development
  • Home
  • Articles
  • WPAlchemy
  • Sidekick Plugin
  • WordPress
  • jQuery
  • Downloads

form validation

CodeIgniter Form Validation — Conditional Required Field 15

CodeIgniter Form Validation — Conditional Required Field

This is a quick tip if you’re looking for a “required_if” rule in CodeIgniter. Basically the rule is as follows: Make form field-A required if form field-B is filled in. The most common case scenario is changing a password, where the original password is required first, but is conditional only if a new password is entered.

WPAlchemy

WPAlchemy — WordPress Meta Box PHP Class

Create meta boxes with ease, this PHP class will give you the flexibility to quickly build custom meta boxes for your themes and plugins. Learn More...

Popular Articles

  • How to Use Multiple WordPress WYSIWYG Visual Editors 190 comments
  • Saving Form Data to Google Spreadsheets Using PHP and the Google Docs API 183 comments
  • jQuery Scrollable Table Plugin 145 comments
  • WordPress Peekaboo Plugin 129 comments
  • How to Create A Custom WordPress Meta Box Instead of Using WordPress Custom Fields 122 comments

Latest Articles

  • TextMate Fullscreen and Other Essential Plugins
  • Old Post Slug — WordPress Removal and Cleanup
  • Sidekick WordPress Plugin Release (v0.6)
  • UTF-8 in MySQL — Solving UTF-8 Issues in MySQL
  • WPAlchemy MetaBox: Install and Setup
  • PHP Multi Dimensional Array Combinations
  • A WordPress Plugin to Remember (HookPress)
  • WordPress Plugin Internationalization (i18n) Localization (L10n)
  • What Bugs You About WordPress, Where is Your Pain?
  • How To Effectively Minimize WordPress Comment SPAM

Recent Comments

  • Dimas: Ted, while I haven’t used this exact setup in years, Apache and FastCGI/FPM are still relevant, my...
  • Ted: I am beginning to return to web programming after a substantial hiatus (due to extreme illness) and am working...
  • Collins Agbonghama: Many years later, this script is still a part of my WP arsenal.
  • Colin Watson: Hi, Im not sure if anyone is looking after this blog as the last comments are almost 2 years old. But...
  • Thilo: This worked for me: $mb->the_field(‘new_c ontent’); $content_settings = array(...

About The Author

Dimas is lead code-slinger at Mighty Digital. He develops engaging, functional and efficient frontend/backend solutions using open source web tools and standards. Learn More

Recommended Links

  • CodeIgniter
  • Digging into WordPress Book
  • Freely Available Programming Books
  • Fresno MMA
  • Garlic Health Benefits
  • Google Analytics Course
  • JavaScript Garden
  • Knowledge Sugar
  • Utah Entrepreneur
  • Vim Video Tutorials
  • About
  • Contact
  • Sitemap
  • Disclaimer
  • Privacy

Copyright © 2020

FARINSPACE

Chu-Chu-Chugging along on WordPress and Hybrid, hosted on Rackspace and accelerated by MaxCDN.