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
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;
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
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
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.
5 matches
Mail list logo