ok so I haven't witnessed this yet but apparently on a Mac using IE, when a user clicks a submit button of a form who's action is a php file, rather than running through my php file it prompts the user with a save as dialog box to save the php document to their computer
strange? or is it?
here is the form at least
<form name="BarGenerator" method="post" action="index.php?do=bargenerator">
<img src="images/barcode_sample1.gif" alt="Generated Barcode" border="1" bordercolor="#000000"></td><td valign="middle<b>Enter 10, 11, or 12 Digit Code </b>
<input type="text" maxlength="12" size="15" name="GenerateID" value="<?php echo@$GenerateID ?>"><br><br>
<input name="GenerateCode" type="image" src="images/button_generate.gif" alt="Generate" width="108" height="27" border="0">
</form>
pleas help
if you want to see it go to hactivist.com/recode
and if you visit their
the larger and more perplexing issue i have is that i want the image to be replaced each time a user clicks my generate button
even when i am creating a .png on the fly that is heavily modded like below
require("_barcode_upc.inc");
$im2 = barcode_generate_upca("$GenerateID", false, 100, 20, 1);
Header("Content-type: image/png");
Header("Pragma: no-cache");
Header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
Header("Cache-Control: max-age=0, no-store, no-cache, must-revalidate");
ImagePNG($im2,'images/barcodetest.png');
i cannot get the page to reload
if i use the img src as a php file is there a way through the form to pass the text string entered to the img src tag and reload the entire page all in one go? and avoid the cache?