Method $_GET[] PHP

Asked

Viewed 30 times

0

I am using the $_GET[] method in php and it is returning the following error: "Do not access the direct Superglobal Array $_GET directly."

follows the code:

<?php 
  function COMP($Comp, $Lar, $Alt){
    echo $Vol =$Comp*$Lar*$Alt;                            
}
  $Comp = isset($_GET['COMP'])?$_GET['COMP']:0;
  $Lar = isset($_GET['LAR'])?$_GET['LAR']:0;
  $Alt = isset($_GET['ALT'])?$_GET['ALT']:0;

  COMP($Comp, $Lar, $Alt);                        
?>

Thanks for the help.

  • 1

    Him who? the netbeans?

  • yes the Netbeans!

  • In this code there I see no problem.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.