I have the index.php with a post form that sends 4 variables to a second php page.
This second page is able to read them with:
Code: Select all
$metric = $_POST['metric'];
$machine = $_POST['machine'];
$time1 = $_POST['time1'];
$time2 = $_POST['time2'];Code: Select all
<img src="genera_graph.php?metric=<?php echo $metric; ?>&machine=<?php echo $machine; ?>&time1=<?php echo $time1; ?>&time2=<?php echo $time2; ?>">Code: Select all
$metric = $_GET[metric];
$machine = $_GET[machine];
$time1 = $_GET[time1];
$time2 = $_GET[time2];Someone realizes what I'm doing wrong?
Thanks.