From c4c2a17d31b6e096bf87da458b81b46dc5553b06 Mon Sep 17 00:00:00 2001 From: leithoff Date: Tue, 5 Jul 2016 13:40:51 +0200 Subject: [PATCH] Updated CodeCorner2 (markdown) --- CodeCorner2.md | 40 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/CodeCorner2.md b/CodeCorner2.md index d000114..491a761 100644 --- a/CodeCorner2.md +++ b/CodeCorner2.md @@ -7,4 +7,42 @@ should design our application a bit more the eGroupware way. Lets start with the traditional way to climb the hill We decided that we wanted to have some input possibilities to affect the output of our greeting of the world. Our index.php file now includes a form to start with and a form that comes into action to -display the users input and a button to reload the whole thing. \ No newline at end of file +display the users input and a button to reload the whole thing. +```php + array( + 'currentapp'=> 'test' , + 'noheader' => False, + 'nonavbar' => False, +)); +/* + include THE eGroupware header, that takes care of the sessionhandling + and the other background stuff + the information provided above is used/required here in order to get the application running +*/ +include('../header.inc.php'); + +if (trim($_POST['fname'].$_POST['sname'])!='') +{ + echo "
Hello ".$_POST['fname']." ".$_POST['sname']."
"; + echo "
+ +
"; +} else { + echo "Type a name to be greeted accordingly
"; + echo "
+

first name:

+

name:

+ + +
"; +} +//display the eGroupware footer +common::egw_footer(); +``` \ No newline at end of file