John Lim helpfully told me, in my previous post, that in ISAPI mode some commands don't work as they would in CGI-Mode.
What else doesn't work in this mode on PWS?
The following code:
"<?
//if form submitted, set cookie
if(isset($inputName))
{
setcookie("cName", $inputName, time()+86400);
$cName = $inputName;
}
?>
<HEAD>
<TITLE>Cookie Example</TITLE>
</HEAD>
<BODY>
<?
if(isset($cName))
{
print("Hello, $cName! \n");
}
?>
<FORM ACTION="cookie.php" METHOD="POST">
Enter your name:
<INPUT TYPE="text" NAME="inputName">
<INPUT TYPE="submit">
</FORM>
</BODY>
"
Which is from PHP's own tutorial doesn't work on my PWS, but it works fine in my PHP enabled webspace. Why is this?
Thanks
Owen