MiniVend Akopia Services

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

Re: Variables in UserTags and/or external scripts called from UserTags



On Mon, Jun 28, 1999 at 02:55:31PM -0400, JFox MiniVend list wrote:
> ******    message to minivend-users from JFox MiniVend list <jfox-mv@thewebunion.com>     ******
> 
> Hey--
> 
> 	A silly question here... I have a UserTag that consists of a small
> Perl script, and I want to know how I can get variables into it. Namely,
> it's for a script that displays an index of available product categories,
> but there is more than one page worth, so it needs to be able to pass a
> "page" variable to itself... i.e. the "next page" button takes you to the
> next page, the "previous page" button to the previous page. I've tried all
> sorts of things... $env{'page'} does not work... cgi-lib.pl seems useless,
> as I can't get it to work with the thing, so I can't use the old
> "&ReadPArse; $pagenum = $IN{'page'};" trick... @@page@@ merely causes a
> screwup (namely, the UserTag breaks, and its name ([usertagname]) is
> displayed instead of the output)....
> 
> 	How can I use variables in this tag? :(

you can use scratch variables to do that, but I'm not sure how, but there
is documentation on using scratch, so it's a point in the right direction.

-- 

Anthony Ball                                                ant@maine.com
MaineStreet Communications, Inc        208 Portland Road, Gray, ME  04039
tel:1.207.657.5078         fax:1.207.657.5048       http://www.maine.com/


Search for: Match: Format: Sort by: