[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] Outside CGI variable access?
****** message to minivend-users from "kyle@invisio.com" <kyle@invisio.com> ******
David,
One way is to change your outside link from:
http://www.example.com/cgi-bin/foo?bar=47&q=13
to:
http://www.example.com/cgi-bin/foo?;bar=47&q=13
(add a semicolon after the question mark)
then use embedded perl to get what you want:
[perl values]
$arg = tag_data('session', 'arg');
# do some parsing on $arg to get your info here
# and set values as needed :
$Safe{'values'}{'VARNAME'} = $some_var_parsed_above;
# then the value is available as [value VARNAME] in MV pages
return "";
[/perl]
At 02:24 PM 8/14/00 , you wrote:
>****** message to minivend-users from David Bushong
><dbushong@datamain.com> ******
>
>Hello, I'm trying to figure out how to get outside CGI variables "into"
>a Minivend session. That is, given a URL like:
>
>http://www.example.com/cgi-bin/foo?bar=47&q=13
>
>I need to somehow get those variables ('bar' and 'q') into a user's minivend
>session. (Specifically, I'm trying to support LinkShare, which needs to
>pass in a session ID) So far I haven't been able to figure out any way of
>doing this, short of (shudder) writing a CGI to create a minivend-parseable
>.html file, then redirecting to that, then having JavaScript to autosubmit
>the form.
>
>--David Bushong
>--DataMain, Inc
>-
>To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
>email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
>Archive of past messages: http://www.minivend.com/minivend/minivend-list
-
To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list