I am using the code following on my page and the values beingreturned are 0 or 1 instead of the actual value given in the url string:

$swf = "-1";
if(isset($_GET['wm'])) {
	$swf = 'wm_'+$_GET['wm']+'.swf';
}
if(isset($_GET['pr'])) {
	$swf = 'pr_'+$_GET['pr']+'.swf';
}

I am passing the url values such as this:

http://somesite.com/index.php?wm=unseen_world&title=TIMES

The desired output would be something like the followng:
wm = wm_unswee_world
title = TIMES

What ever am I doing wrong?

    if (isset($_GET['wm'])) {$swf = 'wm_' . $_GET['wm'] . '.swf';}
    if (isset($_GET['pr'])) {$swf = 'pr_' . $_GET['pr'] . '.swf';}
    

      Sorry, I have been working with Actionscript 2.0 alot lately and did not realize that concatenation for php is done with periods(.) rather than pluses(+).

      I will give it a try...

        I can't belive it was a simple sentax error, I tried everything... just about.

        Thanks dev 🙂

          Write a Reply...