Re: Perl CGI and IIS

SMPnet ( jmcqueen@smpnet.com )
Fri, 20 Jun 1997 23:27:23 -0400

Why not write the CGI for your customer that will create the
files so the url for the group members is:
www.whatever.com\heres_the_group\<usernamefile>.htm

and let the client maintain the pages' unique part for
each member in his group.
This way also he could have more data then just name/address.
And you could make the static part ONCE in the page generation script.

We do this to maintain a list of static pages that are
made on the fly by a sister organization. They put in the
info and the script generates the page to a static file.

SMPnet

lists wrote:
>
> -- [ From: lists * EMC.Ver #2.5.02 ] --
>
> Hi,
>
> I need a little help trying to figure out how to pass a variable through a
> URL.
>
> I need to set up a website that has a bit of dynamic content. A customer
> has an MLM business and he wants to set up a web page for each of his
> customers (the people who have joined under him). The web pages will be the
> same for each customer, except for a few items like their name, address, etc
> ... He wants to give each customer their own URL so they can advertise it.
>
> I really don't want to set up 100 subdirectories and then replicate all of
> the HTML (except for the name and address) for each person. I was thinking
> that maybe I could make a script that would take data from the URL and then
> create the web page. Something like:
>
> www.domain.com/whatever?smith or
> www.domain.com/whatever?bob or
> www.domain.com/whatever?jerry
>
> If I could get the above to work, I could have a script that would intercept
> the variable and then find the customer information from a small database
> and insert it into the HTML.
>
> I'm not sure how to intercept the variable. I've tried:
>
> $input=$ARGV[0];
> print"HTTP/1.0 200 OK/n Content-type: text/html\n\n"
>
> print "<html><head><title>Thank You</title></head>\n"
> print "<body><H1>This is a test</H1>\n"
> print"<h1>$input</h1>"
> print "</BODY></HTML>"
>
> Can anybody help me out? It seems to work OK from the command line when I
> call it like:
>
> test.pl mystery_variable
>
> However, it doesn't seem to work (pass the variable) when I call it from a
> web browser like:
>
> www.domain.com/whatever?mystery_variable
>
> Is there a better way to do this?
>
> Thanks,
> Lance
>
> ----------------------------------------------------------
> NTISP Mailing List listserver@emerald.iea.com