Hi all!
On my remote host server, I can run successfully this:
<form action="$PHP_SELF" method="post">
which is nested inside a $HTML=<<<HTML section
But I have PHP5 running on Appache 2 on my Windows2000 local machine and the form does not get processed with that code (although the php file displays correctly the blank form). Pressing submit just return the blank form. No processing occurs.
So, I have tried using:
<form action="$_SERVER['PHP_SELF']" method="post">
with varying the combination of " and ', to no avail.
I get the following error message:
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING
The test file :
<?php
$t = 10;
echo $t, '---', $_SERVER["PHP_SELF"];
?>
works however perfectly locally.
but in this case, the code is not nested inside a $HTML=<<<HTML section
Any idea what to try?
Thanks!