On Mon, 2005-12-05 at 16:33 +0100, Jean-Philippe BATTU wrote:
Hello
On FC4, I set up httpd 2.0.55 and php 4.xxx.
I wrote a sample html code with a form like this :
<html><body>
<form method="post" action="011verif.php">
Choix : <select name="nom">
<option value="val1">val1</option>
<option value="val2">val2</option>
<option value="val3">val3</option>
<option value="val4">val4</option>
</select>
<input type="submit" value="OK">
</form>
</body></html>
and I wrote 011verif.php like this:
<?php
$name = $_POST['name'];
print("<center>value $name </center>");
?>
on php4.2.2 the output returned is :
value val2name=val2
and on php4.3.10 the output returned is more correct :
value val2
what is the difference between these two outputs ? the php configuration
in php.ini is the same and I don't think that is a bug on php4.2.2
Try looking at the output of
print_r($_POST);
it will show you the structure of the array.
Peter
Do you know this problem ?
Thanks for your feedbacks
Cheers
Jean-Philippe BATTU
Grenoble
FRANCE
jean-philippe.battu(a)bull.net
jeanpba(a)free.fr
http://jeanpba.homeip.net