PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Thanks.
The bar graph script I am using uses a GD Library function to create a graph of the figures in the array which is beyond my knowledge of php. It works perfectly when I use numbers in the array but if I attempt to take those numbers from variables which the user enters from a form it will not generate the image.
Even if I enter the variable in the code and then replace the numbers in the necessary place with $var1,$var2 (like below) the image wont be generated.
Apologies, the problem is not were I thought. Basically I have a form.php file where I enter the variables. When I submit the form it calls form_results.php which contains a list of all the data entered on the previous page and calls graph.php which generates the graph using phpgraph.php.
So, the question really is why wont my variables from form.php be passed to graph.php and subsequently phpgraph.php?
Thanks for all your help. I used session variables to store the numbers and recalled them on the graph.php file. The section of code turned out like this...