passing arguments to a SSI script...

They have: 447 posts

Joined: Oct 1999

how would i send an argument to a script called through ssi?

<!--#exec cgi="scriptname?argument=blah"-->

does not work

They have: 568 posts

Joined: Nov 1999

Depends on the script

They have: 850 posts

Joined: Jul 1999

I only thought you could pass information using GET inside a <form> ?

------------------
L34RN |-|0\/\/ T0 5P34K L33T JU5T L1K3 4N 40L |-|4X0R
http://www.wiredstart.com : The Technology Start Page

They have: 447 posts

Joined: Oct 1999

the script is just a counter and the argument im trying to pass is the name of the html file calling the script.

i could make a script for each html file and call that script specifically like
<!--#exec cgi='cgi-bin/htmlfilename.pl'-->
but that is a pain in the ass and shouldnt be necessary.

id rather have one script and just pass the name of the file in as an argument but
<!--#exec cgi='cgi-bin/counter.pl?file=htmlfilename'>
does not work, it causes an error.

They have: 447 posts

Joined: Oct 1999

oh, and by the way Robp

i r0XXorZ joo c|_|Z i|V| 4 l33t |-|4XX0r

They have: 6 posts

Joined: Apr 2000

Try using <!--#include virtual="scriptname?argument=blah"--> instead of exec cgi.

Jasmine

------------------
The Perl Archive

They have: 193 posts

Joined: Feb 2000

TPA had the right idea.

To see a working example, visit:
http://nevele:[email protected]/twf_help/ssi.shtml

Hope this has helped.

Richard

------------------
[email protected]

"I'm so wracked with guilt. I don't want to stop therapy
because I'm afraid to take the income away from my therapist.
He's got kids in college."
-- Tim Halpern

[email protected]

Everyone here has a website. It's just that not all are worth posting (Mine! Smiling).

They have: 1,587 posts

Joined: Mar 1999

why don't u just use $ENV{'HTTP_REFERER'} within the script?

------------------
CLICK 4 some tested resources for making money $, hosting, and web promotions.
My Site got hacked, but i'm coming back?

Traffic-Website.com free traffic, affiliate programs, hosting, & domain names.
My Site got hacked, but i'm coming back?

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

Would that work with multiple inputs?

They have: 447 posts

Joined: Oct 1999

Thanks for all the replys, i havnt been able to try any of them.

TPA, if that works that was what i was looking for.

fairhousing, im slapping myself in the face right now for not thinking of that, thanks Sticking out tongue

ill let you know if i get this to work

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.