CakePHP: Validate dependent field (select dropdown + input field)

Posted July 15th, 2010 in CakePHP, PHP, Programming, Projects by Louie Miranda

Earlier this week, I was working on a project where I needed to validate two dependent fields.

< ?php echo input('office', array('type' => 'select', 'options' => $nd[0])); ?>
< ?php echo input('office_other', array('maxlength' => '255', 'size' => '35', 'label' => 'Other Office')); ?>

The “office” field is a select (drop down box) from my data array(). What I needed is to be able to add another data from a field and name it as “office_other” where it would initially capture and re-list again new offices if it does not exist.

Continue Reading »

The benefits of SOAP

Posted March 2nd, 2009 in Programming by Louie Miranda

I just recently got interested on SOAP. This will make a huge improvement on how I scale my applications using PHP and ASP.NET.

Thanks for the article from Jimmy (trackback).

JQuery: Simple show and hide toggle effect

Posted December 22nd, 2008 in Programming by Louie Miranda

Here’s my simple example on how to show and hide a

How to do regex on JQuery?

Posted December 11th, 2008 in Design, Programming, Technology by Louie Miranda

I am now a fan of JQuery, trying to implement one application at a time. :) My current problem is how to do regular expression using JQuery?