#!/bin/sh
# this script will echo the user's name, the user's host machine
# and the name of the server running this script

echo Content-Type: text/html
echo

echo "<HTML><HEAD><TITLE>Echoname Example</TITLE></HEAD><BODY>"
echo "<ISINDEX>"
echo "<H1>CGI script example</H1>"
echo Any name typed into the query window will be echoed to the screen.
echo "<HR>"

if [ $# = 0 ]; then
	echo "Please enter your name in the query window.<BR>"
else
	echo Hello $* from $REMOTE_HOST, Welcome to $SERVER_NAME.\<BR\>
fi

echo "</BODY></HTML>"


