Adam,
Thanks so much for your reply! The code in my original question was in php, sorry I didn't phrase it better, I just wanted to show that as an example of what I was trying to duplicate in asp.net. I tried your script and I keep getting this error:
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: BC30188: Declaration expected.
And this line is highlighted:
void Page_Load(object sender, System.EventArgs e)
Should I change this line? Other variables? Also, does it have to be below the </html> tag?
Sorry, I'm a real beginner! Thanks again for your help :)
-Brett