How to add variables in a webpage that will inputs html on many pages?

Jugernot

Diamond Member
Oct 12, 1999
6,889
0
0
I'm currently starting up a hardware review site and am starting to get everything setup. The one thing that I need is a way to input news headlines (linked to the main news page) in to a single html or txt file and have it update each of my pages by using variables. Can someone point me a good source to find info on this?

I've done some simple perl scripting, such as a guestbook and such, but have since forgot how to do this.

Thanks guys!
 

PliotronX

Diamond Member
Oct 17, 1999
8,883
107
106
Dang, it's not quite clear to me how to do it either, but I remember that Adobe GoLive had something that would do all the coding automatically or something.. maybe FrontPage too. I'll look around on some sites for info on it, as I've been wondering the same thing. My guess would be ASP or something of that nature. Try this site, it's cool. Anyone know for certain how to do this??
 

Jugernot

Diamond Member
Oct 12, 1999
6,889
0
0
Well, I might have gone that route, but with that you are still limited to editing each page. What I'm envisioning, is being able to type the News Headlines and have them be read and printed on each page when it is loaded.
 

PliotronX

Diamond Member
Oct 17, 1999
8,883
107
106
I totally know what you're talking about.. that's the bomb. Now I'm dying to know how to do it. Can we e-mail webmaster@anandtech.com or @sharkyextreme.com? Because I know both of them do it, because I've seen errors pop up in the specific areas. I guess it could have something to do with some kind of database and tables.. hmmm
 

Jugernot

Diamond Member
Oct 12, 1999
6,889
0
0
Heh, It probably would be easy, but I don't much about Server side includes. This is basically what I want it to be able to print to a page by using a (!--#command tag="value"?) command:

(a href="index.html#1")(font face="Arial, Helvetica, sans-serif" size="2")Headline 1(/font)(/a)(br)
(a href="index.html#2")(font face="Arial, Helvetica, sans-serif" size="2")Headline 2(/font)(/a)(br)
(a href="index.html#3")(font face="Arial, Helvetica, sans-serif" size="2")Headline 3(/font)(/a)(br)
(a href="index.html#4")(font face="Arial, Helvetica, sans-serif" size="2")Headline 4(/font)(/a)(br)
(a href="index.html#5")(font face="Arial, Helvetica, sans-serif" size="2")Headline 5(/font)(/a)(br)
(a href="index.html#6")(font face="Arial, Helvetica, sans-serif" size="2")Headline 6(/font)(/a)(br)
(a href="index.html#7")(font face="Arial, Helvetica, sans-serif" size="2")Headline 7(/font)(/a)

btw: As you have probably guessed, I had to use ( ) symbol so it would show up on this board.

Thanks
Jugs
 

Jugernot

Diamond Member
Oct 12, 1999
6,889
0
0
jmcoreymv, thanks for jogging the old memory!

I figured it out.

I guess this brain of mine still remembers a little from way back!:D

THis is what I did, I put the above links in a example.txt file and saved it. Then in a seperate file.html file, I added (!--#include file="example.txt"--).

Again remember to replace the ) ( symboles with > <.

PliotronX, try it. Worked great for me!

 

Jugernot

Diamond Member
Oct 12, 1999
6,889
0
0
Well I'd rather not post the url because it really isn't up to snuff yet, but what the hell Techie Talk.

Bring on the criticism. Be gentle. :D
 

PliotronX

Diamond Member
Oct 17, 1999
8,883
107
106
Wow, I like it! Is the Headlines column where you're using variables? Very nice man :)