I have the following code in php to get variables from a query string
$first_name = $_GET['firstName'];
echo $first_name;
when the query string only contains one value like
index.php/details?firstName=Austin
the value appears on the page like
but for some reason when I try and pass two separate values in the query string like
index.php/details?firstName=Austin&lastName=Davis
and trying to make the values of the variables appear on the next page like so
$first_name = $_GET['firstName'];
$last_name = $_GET['lastName'];
echo $first_name + $last_name;
the value zero appears on the webpage. Why can't pass two values in a query string using the & operator.