This shows you the differences between two versions of the page.
kurs:php9.5 [2014/09/10 21:22] |
kurs:php9.5 [2014/09/10 21:22] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== HTML Kopf und Fuss ====== | ||
+ | mit optionalen Parametern\\ | ||
+ | <code php> | ||
+ | function HTML_Kopf($titel='Titel', $farbe='ffffff'){ | ||
+ | print("<html><head> | ||
+ | <title>$titel</title> | ||
+ | </head> | ||
+ | <body bgcolor='#$farbe'>"); | ||
+ | } | ||
+ | function HTML_Fuss(){ | ||
+ | print("</body> | ||
+ | </html>"); | ||
+ | } | ||
+ | HTML_Kopf('Testseite','ccFFcc'); | ||
+ | print("Bodytext"); | ||
+ | HTML_Fuss(); | ||
+ | ?> | ||
+ | </code> |