, index.php, web-, GET POST. html- HTML-, . html- index.php, , CSS- JavaScript index.php. ( , html-):
, , . :
1) , (. ).
2) css- . (. ).
3) <head>. (CSS, HTML) index.php
4) PHP- html-, action form (. ).
7. PHP
- (lab6.php) <div>, include GET-. - , , , - php- . php- , .. .
HTML- , PHP- () -. ( ) HTML- . :
PHP HTML, ;
.
, html-, , *.tpl, . :
, php- {objects} {content}. ( lab7.php) :
|
|
:
- $tmp;
- GET- $object $content , ;
- str_replace() $tmp () ;
- echo .
:
, : , (objects1.php, object1-2.php .) php-, , .. file_get_contents() , . php- include() (. 6), : html- , php- . , , , . php-, , , .
php- registration_form.php include(), ob_start() , . load_content(). include() ob_end_flush().
(*.tpl) (*.php). PHP- .
http://www.cyberforum.ru/php-beginners/thread153221.html
http://phpfaq.ru/tpl
http://webew.ru/articles/3609.webew