Passing URL variable to iframe in another page
I am hoping my explanation of this is clear enough...
Say I have an iframe in one page using src "http://potternet.duoservers.com/%3Faction=f_order&plan_id=48174&css_file=htt://www.potternet.net/css/form.css&otype=", how would I use links from other pages of my site to change the "plan_id=" part to show a different number in each case?
I figure that my links from other pages can be to "set-up-hosting.html?[relevant id number]" in each case.
the question is, can I replace "plan_id=48174" with something like "plan_id=$plan" and use jquery to write the relevant number from the querystring of a link from another page of my site?
A batter way to word my question
The title may not explain it very well but it's best I can think of.
In simple terms, I have 20 or so links like this one:
Code:
http://potternet.duoservers.com/?action=f_order&plan_id=36906&css_file=http://www.potternet.net/css/form.css&otype=
each one where the "plan_id" is the only difference.
Can I set each link up on their respective pages so that I can just have a simple querystring (ie. my-page-name.html?41745 or my-page-name.html?36906, etc) that will pass the number from the query string of the web address to the iframe that the form would load up in?
If so, how would I go about doing this?
This is the src for my iframe:
Code:
"http://potternet.duoservers.com/?action=f_order&plan_id=[number]&css_file=http://www.potternet.net/css/form.css&otype="
Is there a jquery code I can place into the head of my page to "$GET" the querystring and then get the iframe to load up with the correct information each time?
Should you need a better explanation, let me know and I will see what I can do. cheers :D