strange value of variable after a php form

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello

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
Site Web Personnel: http://www.geocities.com/jeanpba
http://jeanpba.homeip.net

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux