MiniVend Akopia Services

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

Re: [mv] Getting arguments....



Maybe this can help you (not tested)


<FORM ACTION="http://__SERVER_NAME____CGI_URL__/escapepage?[data session id]" METHOD="POST">
<INPUT TYPE="hidden" NAME="escapearg1" VALUE="escapes">
<input type="submit" Name=mv_todo VALUE="ESCAPES FOR FREE"> 
</FORM>


And in your escapespage.html....insert this at the top of the page

[perl arg="cgi scratch"]
         $Safe{'scratch'}->{"escapearg1"}  = $Safe{'cgi'}->{"escapearg1"};
"";
[/perl]

Test the argument with

Did you get the argument : [scratch escapearg1]<BR>

in the same page. If you get the argument, use it!

Regards,

Joachim


On 29 Nov, Pello Xabier Altadill Izura wrote:
> ******    message to minivend-users from Pello Xabier Altadill Izura <pellox@omniware.es>     ******
> 
> Hi there!!!
> We installed a few days ago a Linux powered apache web-server 
> with the postgres DBM. And our intention is to create a virtual shop
> using Minivend (do you know it ? :-> ).
> OK, we installed Minivend, we probe the "simple" sample, we make 
> some catalogs for testing and then we begin preparing the final catalog
> for the Shop. This catalog gets data from the DBM, tables, data, and all
> stuff is ready, of course.	
> Now: we have problems to make this simple page
> with minivend: In one page called "indexes.html" we have inserted a tag like
> this:
> 
> [page escapespage arg1=escapes]ESCAPES FOR FREE[/page] 
> 
> indexes.html -----------(arg1=escapes)----> escapespage.html
> 
> Well, clicking on this link you go to a page passing an argument (arg1).
> The problem is that in destiny page we can't (we don't know) how to get
> the argument 'escapes'. We want to make a SQL query with this argument.
> How should we do it ?
> using perl ?
> -If you can, tell us two ways to get the argument: using perl, and
> using minivend.-
> 
> Thank you very Much!!!
> 
> Pello Xabier Altadill Izura.
> e-Commerce dptment. Omniware
> 
> -
> 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
> 

-- 
Hans-Joachim Leidinger
buch online                 jojo@buchonline.net
Munscheidstr. 14            FAX: +49 209 1971449
45886 Gelsenkirchen         FAX: 0209 1671449



Search for: Match: Format: Sort by: