Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Parse querry string with ssi

Reply
Thread Tools

Parse querry string with ssi

 
 
SpaceGirl
Guest
Posts: n/a
 
      05-22-2004

"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


 
Reply With Quote
 
 
 
 
brucie
Guest
Posts: n/a
 
      05-22-2004
in post: <news:H6Mrc.3115$>
Martin Johansen <> said:

> Using server-side-includes, ssi, is it possible to parse a querry string?


only in a very limited way. if you want to do fun giggly things like
parsing query strings then you've outgrown SSIs. use something like PHP.

--
b r u c i e


 
Reply With Quote
 
 
 
 
Martin Johansen
Guest
Posts: n/a
 
      05-23-2004
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!
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Querry String On Postback =?Utf-8?B?RGF2ZSBU?= ASP .Net 1 07-02-2007 04:23 PM
How to parse a string like C program parse the command line string? linzhenhua1205@163.com C Programming 19 03-15-2005 07:41 PM
querry Varsha MCSD 6 01-05-2004 05:34 PM
SSI/ASP PROBLEM (Query String) HELP!!! Jeremy ASP General 5 12-11-2003 05:37 PM
SSI/ASP 404 Error (Query String) Jeremy ASP General 0 12-09-2003 05:58 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57