From d69a974304a57e4889093bc33314b65968bc0d46 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 18 Oct 2014 01:37:25 +0300 Subject: [PATCH] Tsoupaki Eleni --- index.html | 26 ++++++++++++++++++++++ result.php | 65 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 91 insertions(+) create mode 100644 index.html create mode 100644 result.php diff --git a/index.html b/index.html new file mode 100644 index 0000000..6a7f479 --- /dev/null +++ b/index.html @@ -0,0 +1,26 @@ + + +First exercise on php + + + +
+Pick Category: + +Search: + +
+ + \ No newline at end of file diff --git a/result.php b/result.php new file mode 100644 index 0000000..af77c88 --- /dev/null +++ b/result.php @@ -0,0 +1,65 @@ + +".$movies[0][$i]."
"; + } + + elseif ($movie_type == 'Comedy') + { + for($i=0;$i<3;$i++) + if(stristr($movies[1][$i], $moviestxt) == TRUE) + echo "
".$movies[1][$i]."

"; + } + + elseif ($movie_type == 'Horror') + { + for($i=0;$i<3;$i++) + if(stristr($movies[2][$i], $moviestxt) == TRUE) + echo "
".$movies[2][$i]."

"; + } + + else echo "Movie not found!"; +} + +else echo "
Please insert a string
"; + +echo "
Return to search form
"; + +?>