Passing Variables from PHP to PHP
I have a situation where I have a PHP page that is mixed with php and html throughout. because of this mixed format, when I try to tun my function to create thumbnails of images, the function fails to operate properly, and instead of displaying the image, it displays the ascii characters. If I put the function as it's own php page, I can set the script to a specific image and it will operate properly when the child page (b.php) is called from the parent page (a.php). This child page is supposed to be a generic process, and that is why I tried to create the function at beginning. My problem now, is passing a variable from a.php to b.php so that I can make b.php generic for all images as they arise. I have tried setting variables as global, and calling with the $GLOBALS['xxxxxxxx'], but this does not pass the variables between A.PHP and B.PHP I tried using the HTML $_POST variable call, but this seems to only work with an form input from HTML, and this is not acceptable. Is there a way to define a variable in HTML without using the <input> and having it pass to the php page?
Please help
Brian
|