Hey I've been reviewing over w3schools and I just want to check if my naming of syntax is right
if someone can check it or help me out
<?php
if (isset($_POST['name']) && isset($_POST['name2'])) {
$num=$_POST['name'];
$num2=$_POST['name2'];
echo $num . ' multiplyed by '. $num2 . ' = '.$num*$num2;
}
else{
echo '';
}
?>
the if
is a condition statement?
isset
is function
$_POST[name]
is inside the parameter and it is a global variable (question what exactly is the definition of a global variable)
$num
and $num2
are variables
name
and name2
are marks from the HTML name, but what is the correct definition of name
and name2