the problem turned out to my hosting company..
i emailed them, and it turned out they hadn't turned the PHP on!!
all the scripts above work now.. 🙂
although im now stuck on trying to get a form variable to the php script. heres the pages:
index.htm
<html>
<head><title>ncoded PHP Sever Test Page </title></head>
<body>
<form name="form1" method="post" action="index2.php">
<input type="text" name="firstname">
<input type="submit" name="Submit" value="Submit">
</form>
</body>
</html>
index2.php
<html>
<head><title>nCoded PHP Server Return Page </title></head>
<body>
<?php echo("Greetings.$HTTP_POST_VARS["firstname"]"); ?>
</body>
</html>
all i get back is the following error msg:
Parse error:
parse error, unexpected '\"', expecting T_STRING or T_VARIABLE or T_NUM_STRING in /... /httpdocs/index2.php on line 4
any ideas?
thanks, ck