passing arguments to a SSI script...
how would i send an argument to a script called through ssi?
<!--#exec cgi="scriptname?argument=blah"-->
does not work
how would i send an argument to a script called through ssi?
<!--#exec cgi="scriptname?argument=blah"-->
does not work
Orpheus posted this at 05:39 — 3rd April 2000.
They have: 568 posts
Joined: Nov 1999
Depends on the script
Rob Pengelly posted this at 12:26 — 3rd April 2000.
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
http://www.thehungersite.com - http://www.therainforestsite.com
http://www.ratemymullet.com - Beauty is only mullet deep.
ROB posted this at 20:41 — 3rd April 2000.
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.
ROB posted this at 20:44 — 3rd April 2000.
They have: 447 posts
Joined: Oct 1999
oh, and by the way Robp
i r0XXorZ joo c|_|Z i|V| 4 l33t |-|4XX0r
TPA posted this at 18:48 — 10th April 2000.
They have: 6 posts
Joined: Apr 2000
Try using <!--#include virtual="scriptname?argument=blah"--> instead of exec cgi.
Jasmine
------------------
The Perl Archive
richjb posted this at 14:19 — 12th April 2000.
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! ).
fairhousing posted this at 22:06 — 12th April 2000.
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 posted this at 23:45 — 12th April 2000.
She has: 5,507 posts
Joined: Feb 2000
Would that work with multiple inputs?
ROB posted this at 00:24 — 13th April 2000.
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
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.