SWFObject 2.0 (dynamic) example: Passing querystring variables to a SWF using PHP

The following PHP code is being used to get the querystring terms and dynamically add them to the SWFObject JavaScript code:

foreach($_GET as $variable => $value) {
  echo "flashvars." . $variable . " = " . "'" . $value . "'; \n";
}

Click one of these links to populate the querystring: