Hey guys and gals. I have ran into a bit a brick wall, and I can’t seem to find any articles on the web about this. Let me give you a little bit of a background no what I want to do. I have a register page that includes a random verification image that was generated from a PHP file. The PHP file creates the random image and uses the imagejpeg function to output the image to the browser. I include the random image using the following HTML code:
[CODE]<img name=”verImage” src=”generateImage.php” />
It outputs the image perfectly, but what I would like to do is include a link right below it to allow the user to refresh the image if they can’t see it, using something like the following:
[CODE]<a href=”#” onclick=”document.verImage.src=’generateImage.php’;return false;”>Refresh</a>
But whenever I click the refresh link, it does absolutely nothing. The old image stays there, but no new image is generated. I wasn’t for sure if this would be something that I would need to do with my javascript code or with my PHP code. So, any help would be tremendously appreciated. Thanks in advance guys.