CalcBuilder Forum

Problem with uploaded images

User TheFencepedia 2026-07-29 18:10:32

Hi there,

I've got a PHP customization on my forms that allows users to upload an image, and then uses that image on the output.

The code looks like this:


//Signature
$drawingLink = preg_match('/href="(*)"/', $Signature, $match) ? $match : '';
if (empty($drawingLink)) {
echo "";
}
else {
$SignatureOutput = '<img style="display: block; margin-left: auto; margin-right: auto; width: 150px;" src="'. $drawingLink .'">';
}

The problem I have is that once you have uploaded an image once, ALL future instances of that form will use the first image you have uploaded, rather than the one uploaded on that instance of the form.

This happens even when I turn caching off, and even when I reload the page or reset the form.

How do I ensure that the form uses only that instance of the image upload with that variable name?

Honestly, I always assumed it WAS doing that!

Please advise.

...
Support/development 10 hours

Get a bigger amount of hours for more complex tasks and get a 10% discount

Buy now!
...
CalcBuilder

Create dynamic calculators

Buy now!