Akopia Akopia Services

[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 "Jeff Carnahan" <jcarnahan@networq.com>     ******

Or:

http://www.example.com/cgi-bin/foo?bar=47&q=13

then on foo.html:

[perl]
	my $bar = $CGI->{'bar'}:
	my $q = $CGI->{'q'};

	# Do Something
[/perl]

http://www.minivend.com/minivend/tags/03.47.perl.html

--
Jeff Carnahan - jcarnahan@networq.com

> -----Original Message-----
> From: owner-minivend-users@minivend.com
> [mailto:owner-minivend-users@minivend.com]On Behalf Of kyle@invisio.com
> Sent: Monday, August 14, 2000 8:58 AM
> To: minivend-users@minivend.com
> Subject: 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
>

-
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


Search for: Match: Format: Sort by: