wikiacademia

site

oct 3

Sam 'n Jim.
Talked about sessions (built into PHP) and ways to 'wrap' the form variables into an object.
Looked at http://pear.php.net/package/HTML_QuickForm as a way to do this. Their site was pretty slow, though.
See http://www.onlamp.com/pub/a/php/2004/07/22/html_quickform.html for a tutorial (July 2004).
(PEAR is a repository of PHP scripts, analogous to CPAN for perl.)
From ubuntu shell, Jim as root :
$ apt-get install php-pear ... is already the newest version $ pear list PEAR XML_RPC ... # -a is "install all required and optional dependencies" $ pear install -a HTML_QuickForm $ pear install -a DB # success $ pear install -a DB_Table # failure: No handlers for package.xml version 2.0 # suggested fix after online search (-o : only required dependencies) $ pear upgrade -o PEAR $ pear install -o DB_Table # success


See also:
PEAR DB_Table says: Builds on PEAR DB to abstract datatypes and automate table creation, data validation, insert, update, delete, and select; combines these with PEAR HTML_QuickForm to automatically generate input forms that match the table column definitions.
http://cs.marlboro.edu/ courses/ fall2006/ tutorials/ php_mysql/ oct_3
last modified Tuesday October 3 2006 3:59 pm EDT