| brl-example - An example of a BRL document. | Lecture 6 - slide 10 : 22 Program 3 |
<html>
<head>
[
(inputs word) ; HTML input. Will be null if no such input.
(define newword
(if (null? word)
"something"
word))
]
<title>Backwards</title>
</head>
<body>
<form>
Type a word: <input name="word">
<input type="Submit">
</form>
<p>[newword] spelled backwards is
[(list->string (reverse (string->list newword)))]
</p>
<p>This message brought to you by [(cgi SERVER_NAME)] as a public
service.</p>
</body>
</html>