Hello,
I have a problem that there must be a very simple solution for that I am missing.
Inventory Page
I have an inventory page which will display the inventory for a boat manufacturer via iframe. I need to send this URL a variable from the URL so it can display a particular brand. I use the code below which just simply calls the snippet.
<iframe frameborder="0" height="2700" id="content" name="content" scrolling="no" src="[[inventory]]" width="810"></iframe>
Brand Page
On the brand page I am using a basic link to the page with the variable that the snippet will pull from the URL as below where &brand is the brand needed to show
<a href="[~24~]&brand=monterey">Link</a>
Snippet
Finally on the snippet page I have a very simple code that just gets the variable from the previous page, inserts into a URL string and that URL gets put into the inventory page
<?php
$val = $_GET['brand'];
echo "http://www.fictitiouslink.net/inventory/diamondmarine/allcars.asp?make=$val";
?>
The Problem
It seems like it works for the first brand that you do it for but no other brands after that work. It’s almost as though once the snippet is run once it won’t run again. How do I get it so if I change the variable to "baja" from "monterey" etc it will change the url for the iframe correctly? Right now it takes whatever the first variable you use and holds onto it.
Thanks!!