For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > October 2007 > Actions based on rules









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Actions based on rules
Nicolas de Bari Embriz Garcia Rojas

2007-10-29, 4:05 am

Hi all, I am using html_quickform for requesting url and tile but i
would like to display a check box (continue anyway) if one of the
rules (not a valid url) do not pass, at the moment i am doing this:

if ($this->validate() && !empty($_POST['url'])) {
$this->tpl->assign('checkbox',true);
$this-> addElement('checkbox','continue',_('Cont
inue anyway'));
}

Is there a way to get the output or the registerRules so later based
on that output do some actions?


regards.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com