PDA

View Full Version : how to do this?



ijonny
Oct 18th, 2008, 02:31 PM
not sure where to put this......

Its kind of hard to explain. for example:
say if my website had the same layout for every page, and i had a box on the left hand side with like a poll in it. is there a way i could change the poll when ever i wanted without editing every single page on my site? cheers

gnomeontherun
Oct 18th, 2008, 02:46 PM
Multiple options, but not with HTML.

Basically you have to have a server script (or possibly a javascript, although not as appropriate in this situation), that will display the poll file.

So think like this, your poll is a separate file, and you use either PHP, ASP, some other scripting language, or Server Side Includes (if available), to insert the same file into every page.

http://www.codingforums.com/showthread.php?t=11548
http://www.tizag.com/phpT/include.php

ijonny
Oct 18th, 2008, 03:16 PM
thanks, thats exactly what i wanted!