ssi and query strings

W

worldboy

Hey all.

This is wat i'm trying to do. Please help.


I have a sort of blog site with several interfaces.

What I'm trying to do is this:

I click on a link and that link will send information to the server
that will bring up some text and format that entry to fit the
interface of colors and things.

At first this is the only way:

For Sept 20
interface 1 link >> interface1/ 9/20 entry1.html >> uses
interface1.css
interface 2 link >> interface2/ 9/20 entry2.html >> uses
interface2.css

For Sept 21
interface 1 link >> interface1/ 9/21 entry1.html >> uses
interface1.css
interface 2 link >> interface2/ 9/21 entry2.html >> uses
interface2.css

The entries contain the same information, but having to make 2
seperate ones make the website redundant and inefficient.

Then i learned i can use an ssi to call information from a single
source on my server.

For 9/20

interface 1 link >> shows interface1/ 9/20 entry.html >> uses
interface1.css9/20.txt
interface 2 link >> shows interface2/ 9/20 entry.html >> uses
interface2.css9/20.txt

For 9/21

interface 1 link >> shows interface1/ 9/21 entry.html >> uses
interface1.css9/21.txt
interface 2 link >> shows interface2/ 9/21 entry.html >> uses
interface2.css9/21.txt


The entry information is stored on 1 site, and the infromation doesent
have to be recopied. But having to create an html file that calls an
entry for each day for each interface is also redundant and time
consuming.

what i'd like to is know how to do this, perhaps using query strings.

for 9/20

interface 1 link ?date="9/20" >> shows page1.html >> interface1.css"9/20".txt
interface 2 link ?date="9/20" >> shows page2.html >> interface2.css"9/20".txt
for 9/21

interface 1 link ?date="9/21" >> shows page1.html >> interface1.css"9/21".txt
interface 2 link ?date="9/21" >> shows page2.html >> interface2.css"9/21".txt

maybe even:

link ? date="9/20" interface="1" >> shows page.html >> "1".css"9/20".txt
link ? date="9/20" interface="2" >> shows page.html >> "2".css"9/20".txt

link ? date="9/21" interface="1" >> shows page.html >> "1".css"9/21".txt
link ? date="9/20" interface="2" >> shows page.html >> "2".css"9/21".txt

Do y'all know wat i mean?

How can I tell the browser to load specific content and in a specific
style depending on how the user clicks into the information?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top