To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.publishOpen lugnet.publish in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Publishing / 2158
2157  |  2159
Subject: 
Re: Grabbing the stuff after the ? in a URL
Newsgroups: 
lugnet.publish, lugnet.off-topic.geek
Date: 
Sat, 8 Jul 2000 03:57:56 GMT
Viewed: 
1205 times
  
In lugnet.publish, Bram Lambrecht writes:
"Dan Boger" <dan@wwind.com> writes:
In lugnet.publish, Bram Lambrecht writes:
mattdm@mattdm.org (Matthew Miller) writes:
Bram Lambrecht <BramL@JUNO.com> wrote:
Is there a way to do this?  Using just SSI?

I don't think so. You'll need to use CGI.

Time to learn Perl, then.  Will the stuff after the ? be
automatically intrepreted as stdin?

not that easily - it's a "get" form, so it'll all be on the
commandline, I think, but you'll still have to decode it
(?xxx=yyy&aaa=bbb etc) also decode stuff like %20 to spaces...
much easier to use the CGI module to parse it all
for you an put it in nice happy variables :)

I figured that much.  Does this mean I could also just format it like
this:
/space/space.shtml?viper
since I'll prolly only have the one variable?  Could I also name the ssi
file index.shtml and call it like this:
/space/?viper

yup, you could do that, easy... also (cooler, imo):

/space/viper

and have it call the "space" script with the viper arg :)

Look at:

http://www.giccs.georgetown.edu/cgi-bin/dan/inv

and it's subdirectories...

:)

Dan



Message is in Reply To:
  Re: Grabbing the stuff after the ? in a URL
 
(...) I figured that much. Does this mean I could also just format it like this: /space/space.shtml?viper since I'll prolly only have the one variable? Could I also name the ssi file index.shtml and call it like this: /space/?viper Thanks for the (...) (24 years ago, 8-Jul-00, to lugnet.publish, lugnet.off-topic.geek)

3 Messages in This Thread:


Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR