multiple choice display content in IFRAME

Hi there

I have 2 files here but would like to find a way of selecting from multiple menus the values and display in Iframe. This iframe should be local and not sever side.

Also update per menu not 1 that refeshes and resets other values of choice. Segmented in a way.

here are the files

main form

<html>
<head>
<title> No title</title>
<meta name="description" content="Blank document with no style.">
</head>
<body>

<table border="1" width="100%">
    <tr>
        <td width="562" height="312" rowspan="3"><p>&nbsp;<font face="Arial"><IFRAME SRC="refresh-frame.html" WIDTH="680" HEIGHT="500" scrolling="yes"></IFRAME></font></p>
        </td>
        <td width="88" height="83">
            <p>Content1</p>
        </td>
        <td width="83" height="83">
            <form name="form1">
                <p><select name="content1" size="6">
                <option value="info here">content1</option>
                <option value="even more info">content1b</option>
                <option value="tons of info">content1c</option>
                </select></p>
            </form>
            <p>select %TITLE%</p>
        </td>
        <td width="51" height="83">
            <form name="form4">
                <p><select name="template" size="1">
                <option value="template1.html">template1</option>
                <option value="template2.html">template2</option>
                </select></p>
            </form>
            <p>select str_replace</p>
            <p>template1</p>
            <p>template 2</p>
        </td>
    </tr>
    <tr>
        <td width="367" colspan="3">
            <form name="form5">
                <p>Content 2 &nbsp;<select name="content2" size="1">
                <option value="displayme">content2</option>
                <option value="display even more">content2b</option>
                <option value="display even more info">content2c</option>
                </select></p>
            </form>
            <p>str_replace %CONTENT% from template X</p>
        </td>
    </tr>
    <tr>
        <td width="88">
            <form name="form2">
                <p><input type="submit" name="create"></p>
            </form>
            <p>&nbsp;</p>
        </td>
        <td width="83">
            <p>&nbsp;</p>
        </td>
        <td width="51">
            <p>&nbsp;</p>
        </td>
    </tr>
</table>
<p>Display pull down menu content and read template %TAG% display in IFRAME
then on submit download iframe content as a file</p>
</body>
</html>

template file

<html>

<head>
<title>No title</title>
</head>

<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red">
<p>%TITLE%</p>
<p>%CONTENT%</p>
<p>%INFO%</p>
</body>

</html>

So really all it is doing is search and replacing data via tags with a template then the values of the pull down menus fill in the gaps of the iframe
This question will be in multiple parts so it could be worth 2000 points to anyone.

thanks
playstatAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

RoonaanCommented:
You cannot open local files using php. You have to use clientside scripting in order to do that. ActiveX is the only clientside way I know to achieve this.

Regards

-r-
0
playstatAuthor Commented:
can javascripting do it
0
playstatAuthor Commented:
how about a random folder server side once that is stored then hit the submit and downloads the output
0
RoonaanCommented:
Using serverside languages you can do a lot. I think it could also provide with what you are searching for now.

Easier would be to have the templates stored in db, and provide users with a editor of some way, such that they don't have to work with ftp etc.

-r-
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.