I can’t seem to work out the syntax for adding a user defined global variable value into an inline style that uses single quotes.
This is the line as it is and working:
$Output .= "<img id=\"".COMMON_REL_IMAGES."refreshicon.gif\" style='border: 1px solid #CBD8E5;' src='/common/icaptcha/imagick.php?img=' + Math.random();/>";
. . . but I want to add another value something like ths:
$Output .= "<img id=\"".COMMON_REL_IMAGES."refreshicon.gif\" style='border: 1px solid #CBD8E5;' src='.COMMON_REL_ICAPTCHA.'imagick.php?img=' + Math.random();/>";
As it uses single quotes, the variable becomes a string rather than the value. How is that done?