I'm trying to add a suffix (ie) '.php' to the end of a variable within the javascript code below. I know its simple but i've had a good look around and cound'nt find anything.
<iframe width=150 height=200 src="<?=$page?>" </iframe>
<iframe width=150 height=200 src="<?=$page . '.php';?>" </iframe>
Should do it
infact this will work too
<iframe width=150 height=200 src="<?=$page?>.php" </iframe>