strange value of a variable after a php form

Jean-Philippe BATTU jeanpba at free.fr
Mon Dec 5 15:33:37 UTC 2005


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

Do you know this problem ?
Thanks for your feedbacks

Cheers


Jean-Philippe BATTU
Grenoble
FRANCE
jean-philippe.battu at bull.net
jeanpba at free.fr
http://jeanpba.homeip.net




More information about the fedora-list mailing list