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 / 2156
2155  |  2157
Subject: 
Re: Grabbing the stuff after the ? in a URL
Newsgroups: 
lugnet.publish, lugnet.off-topic.geek
Date: 
Sat, 8 Jul 2000 03:24:11 GMT
Viewed: 
854 times
  
"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
Thanks for the help.
--Bram


Bram Lambrecht................BramL@JUNO.com
http://www.chuh.org/Students/Bram-Lambrecht/



Message has 2 Replies:
  Re: Grabbing the stuff after the ? in a URL
 
(...) That's the idea. Although it probably would be .cgi instead of .shtml. (24 years ago, 8-Jul-00, to lugnet.publish, lugnet.off-topic.geek)
  Re: Grabbing the stuff after the ? in a URL
 
(...) yup, you could do that, easy... also (cooler, imo): /space/viper and have it call the "space" script with the viper arg :) Look at: (URL) it's subdirectories... :) Dan (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