Below are my codes...
Main PHP:
<form name="form2" action="Pie_Chart.php" method="GET" id="form2">
<input type="hidden" name="Annual_Expenses" value="<?php $Annual_Expenses ?>" />
<input type="hidden" name="Mortgage_Interest" value="<?php $Mortgage_Interest ?>" />
<input type='submit' name='Calculate' id="Calculate" />
</form>
Pie_Chart.php:
<?php
//Include the code
include('phplot.php');
//Define the object
$graph =& new PHPlot(350,200);
$graph->SetPlotType("pie");
$legend = array();
//Define some data
$data = array(
array('a',$_GET,$_GET['Mortgage_Interest'],5526.09,12000,2805.48) ); $graph->SetDataValues($data); $graph->SetLegendPixels(1,5,false); $graph->SetLegend($legend); //Draw it $graph->DrawGraph(); ?> Anyone have any ideas? If anyone could give me a workable solution, I would highly appreciate your work!!! Thank you very much!!!