Thanks for the help.
It works. But I've got one other question.
The output, which is a ramdon number, outputs above the<html> tag at the top of the page like this:
1 (or 2, or 3, etc.)
<html>
<body>
</body>
</html>
When I assign the $AdNumber variable down below the tag it outputs like this:
<html>
<body>
Object
</body>
</html>
How can I get the random number output to print down within the Html page?
Thanks.