$ext = 'jpg';
$path = './img/';
$capcha .=
'<div><span>'.$values[$i].' <input type="radio" name="capcha" value="'.$value2[$i].'"></span>
<div style="background: url('.$path.$values[$i].'.'.$ext.');
width:33px;
...
This works, but I want to replace $ext and $path variables with theirs values.
<div style="background: url('./img/'.$values[$i].'.jpg'.);
Errors: something is always unexpected.
You made a typo i guess…
I guess this would work.
Or:
with escaping the single quotes: