Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Parse querry string with ssi
- Martin Johansen
May 23, 2004, 2:33 am
rate this thread
Note: I post this question on this newsgroup because it was the closest
to what I am asking.
Using server-side-includes, ssi, is it possible to parse a querry string?
doing somehting like
<!-- set var="var1" value="parsequerry('var1'0)" -->
Other hints are welcomed!
Re: Parse querry string with ssi
Your question isn't very clear. I'll take a shot anyway.
Say you have a page called helloworld.asp, which includes (via SSI) content
helloworld.asp would contain;
<!--#include file="headers.asp" -->
headers.asp could contain this:
pageTitle = request("title")
response.write "<title>" & pageTitle & "</title>"
So now we have an included script that lets you set the page title to
whatever you like. To try it, you'd type the following into your browser:
Hope that helps...