Akopia Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Redux: [mv] Settings Scratch Variables Via An Outside Link



******    message to minivend-users from "Ed LaFrance" <edl@newmediaems.com>     ******

Oh...scraaaaatch variables. You say scratch in your message, but then 
reference form variables (like [value foo]) in your example.

For scratch variables I would probably use the session argument.  You could 
use something like colon to separate values, then capture then with:

[if session arg]
  [perl arg="scratch" interpolate=1]
     my $arg_string = "[data session arg]";
     my @args = split(/:/, $arg_string);
     $Safe{scratch}->{foo} = $arg[0];
     $Safe{scratch}->{bar} = $arg[1];
     return;
  [/perl]
[/if]

This is untested, but I hope you get the idea.

- Ed L.

> ******    message to minivend-users from steven.morrison@ns.sympatico.ca 
(Steven J Morrison)     ******
> 
> This is a multi-part message in MIME format.
> 
> 
> Hi there Venders,
> 
> Is there an easy way to set a standard scratch variable via a URL link? 
For example:
> 
> http://www.myminivendbox.com/cgi-bin/vlink/process?<bar>=foo&<foo>=bar
> 
> Would set [value bar] to "foo" and [value foo] to "bar".  
> 
> This is probably an easy one - any thoughts?
> 
> 
> 
> 
> 

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
New Media E.M.S.               Software Solutions for Business
463 Main St., Suite D          edl@newmediaems.com
Placerville, CA  95667         http://www.newmediaems.com
(530) 622-9421                 (530) 622-9426 fax
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
-
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: