I use Xitami www-server and PHP 4.2.3 with it.
I have problems getting variables from forms to work.
Here is a simple code that should work, but it always says "Write some text".
<?php
if(! isset($write)){
$message="Write some text";
}
else{
$message="You Wrote $write";
}
?>
<html>
<body>
<br>
<?php
print("$message");
?>
<br>
<form action="form3.php" type="post">
<input type="text" name=write>
<input type="submit" Value="PUSH">
</form>
</body>
</html>
I can see that the url changes as it should when i use POST method. t is like this .../form3.php?write=Test. I have tried to use GET method but I got same results.
What should I do to get that to work. I haven't changed any php settings. The script works if I put it to my ISP:s webserver.