How do I put a variable into a target file name in PHP?

potatomelon

New member
I want to put a particular array value into the name of the .swf file that I want to run.

For example, if $P1P["P1PID"] = 1, then I want the .swf to play that is called attackbackground1.swf
Or, if $P1P["P1PID"] = 2, then I want the .swf to play that is called attackbackground2.swf
This is the line of the code that I want to change:

The code is HTML, but I am echoing it out from PHP, thus why I have used the backslashes to escape the quotation marks.
<param name=\"movie\" value=\"attackbackground.swf\">
 
Back
Top