Here's what I'm trying to do...
I am sending a variable called "Dealership" into a php page.
The variable for this example is "AAC[X"
(This variable is used as part of a file name to load a javascript file into that page)
How I want the line to look after php:
Code: Select all
<script type='text/javascript' src='PSAMAACїXHFrames_var.js'></script>Code: Select all
<?php
$PSAMID=$_GET['Dealership'];
$begining="<script type='text/javascript' src=''PSAM";
$middle=$PSAMID;
$end="HFrames_var.js'></script>";
$scriptpath="".$begining." ".$middle." ".$end."";
echo $scriptpath
?>Code: Select all
<?php
echo "<script type='text/javascript' src=''PSAM".$PSAMID."HFrames_var.js'></script>"
?>Can someone help me with this syntax???
Thanks,
--Tim