look at this script:
print_r($_POST);
$sendstring = $_POST['sendstring'];
echo "<HTML>";
echo "<BODY>";
echo "*sendstring P: {$sendstring}*";
echo "<FORM METHOD=\"POST\" ACTION=\"$PHP_SELF\" NAME=\"sendform\">\n";
echo "<INPUT TYPE=\"text\" NAME=\"sendstring\" >\n";
echo "<INPUT TYPE=\"submit\" NAME=\"send\" VALUE=\"Send\">\n";
echo "</FORM>\n";
echo "</BODY>";
echo "</HTML>";
alright nothing special, it is oke when I press the submit button, but when I press enter in the inputfield, i get this:
Array ( [sendstring] => testsendstring=test )
sendstring P: testsendstring=test
but the right message has to be this:
Array ( [sendstring] => test [send] => Send )
sendstring P: test
I use PHP 4.3.1 and Apache 2.0.44
what is wrong ???