Similarly to Agile Toolkit, WACT focuses on component-based web application creation.
Case converter tutorial helps building tiny application that accepts a text value as input and will convert that text to all lower case or all upper case text.
Below is the implementation of same functionality using Agile Toolkit
$form=$page->add('Form'); $form->js_widget=false; $line=$form->addField('line','text','Enter text to convert'); $up=$form->addSubmit('Convert To UPPER Case'); $lo=$form->addSubmit('Convetr To lower Case'); if($form->isSubmitted()){ if($up->isClicked()){ $form->set('line',strtoupper($form->get('line'))); }elseif($lo->isClicked()){ $form->set('line',strtolower($form->get('line'))); } } /?>