Akopia Akopia Services

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

Re: [mv] Setting variables inside <a href> or similiar function?



******    message to minivend-users from Mike Heins <mikeh@minivend.com>     ******

Quoting jimtoro@hoflink.com (jimtoro@hoflink.com):
> 
> 
>  I want to be able to set variables when users click on certain links,
> like if a user picks a link (simple <a href> I would like to bury
> a set or seti somewhere in that link so the link is processed
> as normal but a variable is set for future references. I tried alot
> of things but it doesnt seem to work.
> 
> Is this sort of thing permissable?. If I put the [set][/set] or
> [seti][/seti] statment inside the a href minivend doesnt complain
> but it doesnt seem to work when referring to the var later nor does
> it show up in viewing the source when viewing the page which leads
> me to believe MV stripped it or processed it somehow but I am just
> putting it in the wrong place.
> 
> Is there another way to do this?. I dont want a form-button, rather
> I want it to look like a regular link but just set a var when the
> link is clicked.
> 

You should NEVER want Scratch variables set by the user. To allow
them to do so is a security hole, since Scratch variables may contain
code.

You can set the CGI and Values space, though. 

    [area href=your_page
	  form="
		your_var=your_value
	  "]
-- 
Akopia, Inc., 131 Willow Lane, Floor 2, Oxford, OH  45056
phone +1.513.523.8220 fax 7501 <heins@akopia.com>

I have a cop friend who thinks he ought be able to give a new ticket;
"too dumb for conditions".
-
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: