Let's say I have two files, main.html and graph.php.

Graph.php, displays an image, and I have that image in an <iframe> inside main.html.

In main.html, I have added some forms, to pass arguments on to graph.php. Works great.

Only problem, is when I pass those arguments via the form in the html code, and have it linked to graph.php, and I send data to it, it takes me away from main.html and my browser goes directly to the php file - instead of rendering my new data in the iframe.

Any idea around that?