how do I insert an html document? -...

User 425272 Photo


Registered User
6 posts

Hi

I am not sure how to insert a html document into my website, what I am trying to do is when for example I click on my menu "Documents" a new webpage opens and my document "test.html" is displayed,

Thanks
Thanks
Tony
User 355448 Photo


Ambassador
3,144 posts

Tony,

You may want to click on profile and change your forum name to something other than your email address. Just something that may help keep your spam count low.

What program are you using to edit/create your web site?

Using your example when you click on a link on your home page (index.html), that link will open another page that you have created. It is not so much that you insert a document, but you do upload the document and you select the name for it (unless you are using MS Publisher or Word).

If you give us real life examples of what you are trying to do, and let us know what program you are using (Visual Site Designer or HTML Editor), we can give you lots of help.
User 425272 Photo


Registered User
6 posts

Thanks for your reply Bill

I am using PHP and the page I am trying to edit is http://www.mangawhaiweather.co.nz/wx13.php

What I would like is when the link from my menu is clicked "climatedataout.html" is displayed on the page.
Thanks
Tony
User 355448 Photo


Ambassador
3,144 posts

Where is climatedataout.html located?

Where on http://www.mangawhaiweather.co.nz/wx13.php do you want to put the link?

Will climatedataout.html be on another site, or is it a local page? Do you have the complete URL for climatedataout.html?

If you look at the code on http://www.mangawhaiweather.co.nz/wx13.php you will see the anchor tags for the right side menu. Is that what you are wanting to do?
User 425272 Photo


Registered User
6 posts

On the left menu under climatlogical data

climatedataout.html resides on my web server under /scripts

Not sure on your last question!
Thanks
Tony
User 355448 Photo


Ambassador
3,144 posts

Tony,

I am very confused. I just checked, and there is a link to the file you want, and if I click on it, I see the climatedataout.html

I think the URL you are referring to is http://www.mangawhaiweather.co.nz/scrip … taout.html and the link works.

What are you actually wanting to change?
User 425272 Photo


Registered User
6 posts

Hi Bill

I would like climatedataout.html to open on the http://www.mangawhaiweather.co.nz/wx13.php page
Thanks
Tony
User 355448 Photo


Ambassador
3,144 posts

Tony,

Look at the code for the wx13.php page. You will see something like this:
<FORM
ACTION="../cgi-bin/redirect.pl"
METHOD=POST onSubmit="return dropdown(this.gourl)">
<SELECT NAME="gourl">
<OPTION VALUE="">Choose a Month...

<OPTION VALUE="scripts/climatedataout12008.html">January 2008
<OPTION VALUE="scripts/climatedataout22008.html">Febuary 2008
<OPTION VALUE="scripts/climatedataout32008.html">March 2008
<OPTION VALUE="scripts/climatedataout42008.html">April 2008
<OPTION VALUE="scripts/climatedataout52008.html">May 2008
<OPTION VALUE="scripts/climatedataout62008.html">June 2008
<OPTION VALUE="scripts/climatedataout72008.html">July 2008
<OPTION VALUE="scripts/climatedataout82008.html">August 2008
</SELECT>

<INPUT TYPE=SUBMIT VALUE="Go">

</FORM>

Just add the link there. Maybe something like:
<OPTION VALUE="scripts/climatedataout.html">Current Month

See if that is what you are trying to do?
User 425272 Photo


Registered User
6 posts

Hi Bill

I dont want climatedataout.html to be an option selection but have it load automatically on the page under the Selection Option
Thanks
Tony
User 355448 Photo


Ambassador
3,144 posts

Tony,

Now I think I u8nderstand. You want the climatedataout.html to appear at this location on the page:

</FORM>

climatedataout.html to appear here

<!-- ##### Footer ##### -->

I think you need someone with more coding experience than I have. If you can get climatedataout.html to work and be renamed as climatedataout.php, then you can use something like:
<?php include($DOCUMENT_ROOT . "/scripts/climatedataout.php"); ?>
and the page code for wx13.php would then look like this:

<OPTION VALUE="scripts/climatedataout22008.html">2007
</SELECT>

<INPUT TYPE=SUBMIT VALUE="Go">
</FORM>

<?php include($DOCUMENT_ROOT . "/scripts/climatedataout.php"); ?>

<!-- ##### Footer ##### -->
<p></p>

<div id="footer">

I haven't tried this, but it may work.

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.