I've set up a popup browser using JS that I would like to receive some values from a GET string on the original page. When I run the popup, the values do not get run. Any thoughts would be helpful.
Pop up code:
<?php
$h = $_GET['hour'];
$m = $_GET['minute'];
$s = $_GET['second'];
$d=100;
$distance=100;
$t=$h*3600+$m*60+$s;
$pace=$t/$d;
$pm = intval ($pace/60);
$sc = $pace/60;
$sc1 = (($sc-$pm)*60);
$ps = number_format($sc1, 2, ".", ",");
//MAP values
$map2 = $_5000*400;
$map1 = $map2/5000;
//MAP
$map = $map1*0.96;
$map1000 = $map*2.5;
$map1mile = $map*(1609.34398937833/400);
$mapdm = $mapd1*400;
$mapde = $mapdm*(39.370079/12);
}
?>
<html>
<head>
<title>What is MAP?</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#CCCCCC">
<p>MAP is Tinman's shorthand for Maximum Aerobic Pace. While MAP may bear resemblenecs
to the contemporary term VO2 Max, MAP has its own meaning altogether. Based
on nearly two decades of research and study Tinman discovered that MAP is the
key to unlocking your running potential. </p>
<p>For an athlete who runs <?php echo $distance;?> in <?php echo $s;?> seconds their MAP
for 1 mile would be
<?php
$d=1;
$t=(number_format(($map1mile), 2, ".", ","));
$pace=$t/$d;
$pm = intval ($pace/60);
$sc = $pace/60; //*sc=Second Converter
$sc1 = (($sc-$pm)*60); //*sc1=Second Converter 1
$ps = number_format($sc1, 2, ".", ","); //*ps=Pace (in seconds)
if ($pm<1)
{
print($ps);
}
elseif ($pm>=1 & $ps<10)
{
print($pm.":0".$ps);
}
elseif ($pm>=1 & $ps>=10)
{
print($pm.":".$ps);
}?>
. At this MAP pace, they would run <?php print(number_format(($mapde), 2, ".", ",")."ft");?>
(or <?php print(number_format(($mapdm), 2, ".", ",")."m");?>) in 7 minutes.
Using Tinman's system, athletes are given ranges to train within to maximize
their performace based upon MAP.</p>