Variables between different pages.
Posted: Thu Oct 27, 2011 6:43 am
Hello,
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:
but it has to call another php to generate a jpgraph image like this:
genera_graph.php tries to retrieve the variables with this:
but jpgraph allways returns the error "empty input data array"
Someone realizes what I'm doing wrong?
Thanks.
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.