1 pièce(s) jointe(s)
Probleme avec Call Stack - isset
Bonjour,
J'ai créé un formulaire mais quand j'ouvre la page j'ai des erreurs comme vous pouvez voir sur la capture d'ecran.
Pièce jointe 292549
j'ai essayé avec ISSET mais je ne trouve de solution :(
voici le code PHP:
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|
<!--TEST-TEST-TEST-->
<form action="<?php $_SERVER['PHP_SELF']; ?>" method="get">
Diametre-Inter: <input type="text" name="Diametre-Inter"><br>
Diametre-Exter: <input type="text" name="Diametre-Exter"><br>
Division: <input type="text" name="division"><br>
<input type = "submit" value = "Calculer">
</form>
Diametre Interrieur: <?php echo $_GET["Diametre-Inter"]; ?><br>
Diametre Exterieur: <?php echo $_GET["Diametre-Exter"]; ?><br>
Division: <?php echo $_GET["division"]; ?><br>
<?php
$rayon_Inter = $_GET["Diametre-Inter"]/2;
$rayon_Exter = $_GET["Diametre-Exter"]/2;
$divis = $_GET["division"];
//if(isset($_GET[$rayon_Inter]) && isset($_GET[$rayon_Exter])){
for($i=0 ; $i<=360;$i+=360/$divis){
$r = deg2rad ($i);
$k = cos($r) * $rayon_Inter;
$l = sqrt ( pow($rayon_Exter,2)-pow ($k,2));
$x = $rayon_Exter - $l;
echo number_format ($x ,1) . " mm<br>";
}
//}
echo "<hr>";
echo $rayon_Inter . "<br>";
echo $rayon_Exter . "<br>";
echo "<hr>";
?>
<!--TEST-TEST-TEST--> |
comment puis-je régler ce petit probleme?
merci d'avance ;)