[PHP] Oputting Forms Within a Class

2007-04-10 Thread CK
Hi All, Experimenting with OOP PHP,please be gentle. Attempting to output a form within a class: From calculator.php: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html xmlns=http://www.w3.org/1999/xhtml; head meta

Re: [PHP] Oputting Forms Within a Class

2007-04-10 Thread Brad Bonkoski
CK wrote: Hi All, Experimenting with OOP PHP,please be gentle. Attempting to output a form within a class: From calculator.php: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html xmlns=http://www.w3.org/1999/xhtml;

Re: [PHP] Oputting Forms Within a Class

2007-04-10 Thread Richard Davey
CK wrote: private function buildInt(){ !--Script 10.1- calculator.php-- form action=calculator.php method=post //Form elements omitted for brevity /form } } ? This is returned to the browser: Parse error: syntax error, unexpected '' in

Re: [PHP] Oputting Forms Within a Class

2007-04-10 Thread Davi
Em Terça 10 Abril 2007 14:49, CK escreveu: Hi All, Experimenting with OOP PHP,please be gentle. Attempting to output a form within a class: From calculator.php: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html

Re: [PHP] Oputting Forms Within a Class

2007-04-10 Thread CK
Hi, Your suggestion borders the MVC design pattern, which I've used within flash, groovy. Also, the following document illustrated an interesting solution, what are your thoughts? 7. Print form elements' defaults with helper functions.