Salut,
voila je suis vraiment bloqué j'ai ma dernière instruction qui m'envoi un 0 et qui ne veut pas passer j' ai même essayer de forcer en mettant des floatval sur toutes les variable en cas de conflits mais rien ne passe
cordialement.
<?php
$vit = 21;
$valeur = $_POST['mass'];
$val = $vit * $valeur;
echo $val;
$gamma = tan($_GET['poin']/2); //bon jusqu'ici
var_dump($gamma);
$zx = $gamma * $val; //Il y à juste cette instruction qui me renvoi 0 (elle ne vaut pas s'éxecuter)
echo '<table><caption>diambis<tr><td>requete</td><td>valeur</td></tr><td>' . $valeur . '</td>'; echo '<td>' . $zx . '</td></caption></table>';
echo '<img src="essai2.jpg" width="600" height="568" usemap="#poin" />
<map name="poin" id="poin">
<!--#$-:Image map file created by GIMP Image Map plug-in-->
<!--#$-:GIMP Image Map plug-in by Maurits Rijk-->
<!--#$-:Please do not edit lines starting with "#$"-->
<!--#$VERSION:2.3-->
<!--#$AUTHOR:Apple-->
<area shape="poly" coords="36,14,44,14,38,338,36,339" href="diambis.php?poin=45" />
<area shape="poly" coords="45,14,53,14,41,338,40,338" href="diambis.php?poin=30" />
</map>'
?>
<!DOCTYPE html>
<html>
<head>
<title>Les différence</title>
<meta charset = "utf-8" />
<link rel="stylesheet" href= "styledia.css"/>
</head>
<body>
<form action ="diambis.php" method ="post">
<SELECT name = "mass" id = "mass">
<OPTION selected>POUCE (inch) - DN</OPTION>
<OPTION value = 2>masse</OPTION>
<OPTION value = 4>vitesse</OPTION>
<OPTION value = 5>option</OPTION>
<OPTION value = 6>retrait</OPTION>
<input type = "submit" /></SELECT></form>
<p><a href="diambis.php">Revenir</a></p>
</form>
</body>
</html>
Cordialement.