Click to See Complete Forum and Search --> : A list that changes.


Nion
07-11-2005, 01:54 PM
I have a table that contains a list of items that changes periodically. This same table is on over 20 pages. Is there anyway I can remotely call this list so I only have to change it in one place instead of on 20+ pages.

I also have the same list on several forms in a drop-down box. Anyway to remotely call this one too?

Thanks in advance, Nion

BonRouge
07-11-2005, 01:57 PM
includes...

http://bonrouge.com/br.php?page=faq#includes

Nion
07-11-2005, 03:14 PM
I can't use SSI where these pages will be displayed. Can't use Javascript either. Anything else I could use?

NogDog
07-11-2005, 03:28 PM
Is PHP availabe?

Nion
07-11-2005, 03:43 PM
That I'm not sure. I would need an example to give it a try.


Nion

NogDog
07-11-2005, 04:43 PM
Save this on your website as a file with a .php extension (such as "test.php"), then bring it up in your browser. If PHP is running on the server, you should just see one line:

If this paragraph is red, then you have PHP.


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang='en'>
<head>
<META HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=ISO-8859-1'>
<title>Page title</title>
<style type="text/css">
<!--
body {
background-color: white;
color: black;
}
-->
</style>
</head>
<body>
<?php
$color = "red";
echo "<p style='color: $color'>If this paragraph is red, then you have PHP.</p>\n";
?>
</body>
</html>

Nion
07-12-2005, 09:39 AM
PHP does not seem to be available either.

WoD
07-12-2005, 12:01 PM
Well, you have pretty much exhausted every available option for including dynamic content into a set of pages bar the iFrame.

Put your list into a separate page and use <iframe src="mylist.html"></iframe> to include it in all the other pages. It's not the best solution, but it looks like the only one left.

graatz
07-12-2005, 12:45 PM
either that or consider redesigning your page entirely to try to reduce the redundant repetitions..... of course that might not be an option depending on what your list is being used for... I'd say move to a new server... at least one that allows .shtml files (in which you could use the includes)