problms w/ php 4.2.1 mozilla 0.9.9 enctype="mutlipart/form-data" w/ phpWebSite 0.8.3
I've experienced the following problem, using php 4.1.2, with mozilla 0.9.9 :
i've put in a simple html file the following form :
<html>
<head>
<title>Prova</title>
</head>
<body>
<form action="action.php" method="POST" enctype="multipart/form-data">
<input type="text" name="testo" />
<input type="hidden" name="var1" value="1" />
<input type="hidden" name="var2" value="2" />
<input type="submit" name="sub" value="ok" />
</form>
</body>
</html>
the action.php is a very simple script printing the values of the 'testo' var :
<?php
echo( "<p>" . $_POST["var1"] . $var1 . $testo . "</p>" );
?>
The result page is always the same : nothing printed on screen, even with register_globals=on.
Is this right ? There is something else i should aware of ?
I've done this experiment because i tried to run phpWebSite 0.8.3, but the admin pages contains a lot of forms mixing hidden vars, with enctype="multipart/form-data",
but the hidden vars seemed to be ignored, provoking an abnormal behaviour (the app return always to the main page).
|