"Martin Johansen" <> wrote in message
news:H6Mrc.3115$...
> Hello group
>
> 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?
>
> e.g. var1=text1&var2=text2
>
> doing somehting like
>
> <!-- set var="var1" value="parsequerry('var1'0)" -->
>
> Other hints are welcomed!
>
> Thanks!
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
from headers.asp
helloworld.asp would contain;
<html>
<head>
<!--#include file="headers.asp" -->
</head>
<body>
....
</body>
</html>
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:
helloworld.asp?title=Hello
Hope that helps...
Miranda
|