il y a t'il un htmlentities automatique en PHP ?
Bonjour,
J'ai un formulaire :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" />
<title>Untitled Document</title>
</head>
<body>
<form id="form1" name="form1" method="post" action="">
<input type="text" name="champ" id="champ" />
<input type="submit" value="Envoyer" />
</form>
</body>
</html>
<?php
var_dump($_POST);
?> |
Lorsque je post un è, je récupère un è
Si j'enlève le doctype, je n'ai plus le problème.
Vous avez une idée ?