Original Post
I've got a rather tricky question. I'm using PHP's GD extension to generate dynamic graphs for a website i'm designing. These graphs need to be shown in a regular page (not as a separate image). De data comes from a MySQL database and can be quite large. I know I can do this with source tags, so I just did somethin like:
echo "<img src='mygraph.php'>";The problem: For security reasons, I don't want to give mygraph.php access to the database. That means I will need to send all the data that make up the graph via the URL to mygraph.php. Ofcourse, this doesn't work since the URL (with all the GET data) can be only 2060 or so characters long. I need to send it all as POST data. My current setup is like this: FILE: FORM.PHP This gets some user input about the data that needs to be displayed. It is send as POST data to RESULT.PHP FILE: RESULT.PHP This file reads the POST data and makes a database query out of it. It contains a lot of HTML code (nice menu's and stuff). Halfway through I now call the echo "<img src='mygraph.php'>"; code. I also need it to feed the mySQL result as POST data, but how????? FILE: MYGRAPH.PHP This should read the data send as POST data, make a graph with GD and then return the header('Content-type: image/png'); and the image data itself to the <img> tag from RESULT.PHP So.... How do I get the newly generated data as POST data from RESULT.PHP to MYGRAPH.PHP? Thanks for all the help you can offer! EDIT: I broke the forum tables... Oops.... Sander Maréchal [Lone Wolves Game Development][RoboBlast][Articles][GD Emporium][Webdesign][E-mail] [edited by - sander on November 19, 2003 10:15:39 AM]