How to pass a variable

Posted on 2003-02-22
Medium Priority
Last Modified: 2013-12-24
I need to make a selection from a drop-down box in an inline frame.
On the 2nd inline frame of the "holding page", I want it to display a web page based on the value selected in the drop-down box.

Inline frame (A):
Select "1" in the drop-down box.
Let's say the name of the parameter is "D1"
The value for 1 = "webpage.htm"

Inline frame (B):
Is set to retrieve its initial page using "D1" from above.
So it places the value of D1 (webpage.htm) in the retrieval and pulls up that page.

That is the basic concept. Maybe using inline frames is not the best route.

I have set this up but cannot seem to get the Inline frame (B) to take the value of D1. It is probably simple syntax but all my attempts wind up using the literal (D1) instead of its value.

Any ideas?
Question by:mpulse24
  • 2

Accepted Solution

wcameron earned 150 total points
ID: 8058724
Usually frames IS NOT the best way to approach this. Frames are not indexed by search engines and for that reason, only your home page will be indexed. The more pages listed in search engines, the more opportunity for people to find your site. This alone is enough reason to avoid frame pages.

To pass parameters check out a tutorial at my site:


Author Comment

ID: 8070153
Thanks - I read your thorough instructions on your site.
I already have a few pages passing parameters for database retrieval activity.

What I want to do here does not have anything to do with a database.
I want to have a list of options in a drop-down box (that I manually set up initially) that, when a selection is made, causes a web page to be retrieved/displayed based on the value of the parameter selected.

The values are filenames of pages - such as webpage.htm

So, say I select #4 in a drop-down box with 1 through 10 selections. Upon submission, a web page appears. It is webpage4.htm because the value sent when selection #4 was submitted specified that page.
If I select #7, the value would be webpage7.htm and that page would be displayed.
And so forth.

This seems like it ought to be really simple - I hope my explanation is clear enough to understand.

Looking forward to your feedback . . .

Author Comment

ID: 8215980
This never was resolved here but I managed to solve the problem from another post.
Thanks for giving it a quick shot.

Featured Post

[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Objective of This Article In 1990’s, when I was a budding software professional, I had a lot of confusion about which stream or technology, I had to choose to build my career. In those days, I had lot of confusion like whether to choose System so…
Geo-targeting is the practice of distributing content based on a person’s location, as best as you can determine it. Let’s look at some ways you could successfully use this tactic. The following tips and case studies could lead to meaningful results.
The purpose of this video is to demonstrate how to properly insert a Vimeo Video into a WordPress site or Blog. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp…
The purpose of this video is to demonstrate how to update a WordPress Site’s version. WordPress releases new versions of its software frequently and it is important to update frequently in order to keep your site secure, and to get new WordPress…
Suggested Courses

609 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question