I have created a dynamic image file and would like to pass some variables from a post form. Right now I can pass all the info directly into the file that generates the image but I can't get it in from the page I'm showing the image in.
How do I pass the data I've posted into an image tag? It's a good amount of info so having
<img src="image.php?variable_name">
won't work out well. Can anyone help?
M-
Passing post data
Moderator: General Moderators
- CoderGoblin
- DevNet Resident
- Posts: 1425
- Joined: Tue Mar 16, 2004 10:03 am
- Location: Aachen, Germany
As I understand your question:
You get lots of information from a form (POST) which is possibly too large for a GET. You need to pass this information to another script which builds an image (Not another form).
My solution would be to use the post values to build the image and store in a temporary file directory. Then all you would need to do is use the filename. If the dynamic image is actually frequently requested with all the post values the same you may be able to work out a method of naming the files/structure to provide a "cache" of images.
Just my initial thoughts.
You get lots of information from a form (POST) which is possibly too large for a GET. You need to pass this information to another script which builds an image (Not another form).
My solution would be to use the post values to build the image and store in a temporary file directory. Then all you would need to do is use the filename. If the dynamic image is actually frequently requested with all the post values the same you may be able to work out a method of naming the files/structure to provide a "cache" of images.
Just my initial thoughts.