-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrequest.php
More file actions
18 lines (15 loc) · 883 Bytes
/
request.php
File metadata and controls
18 lines (15 loc) · 883 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php
// accept a term (keyword)
// respond with a value
$query = $_GET['q'];
$definition = [
"definition" => "A statement of the exact meaning of a word, especially in a dictionary.",
"bar" => "A place that sells alcholic beverages",
"ajax" => "Technique which involves the use of javascript and xml (or JSON)",
"html" => "The standard markup language for creating web pages and web applications.",
"css" => "A style sheet language used for describing the presentation of a document written in a markup language.",
"javascript" => "A lightweight, interpreted programming language with first-class functions that adds interactivity to your website.",
"php" => "A server-side scripting language, and a powerful tool for making dynamic and interactive websites",
];
print "<h3>" . strtoupper($query) . "</h3>";
print "<p>" . $definition[$query] . "</p>";