[ic] mv_action not doing what I expect...

Paul Stearns pauls@compuace.com
Thu, 30 Nov 2000 20:46:18 -0500


I am runneing v4.6 with GDBM.

I have copied the results.html page to cat_results.html.

When I click on Buy, the page returned is the original results.html page
with a really odd set of products.

What am I doing wrong?

Below please find the FORM tag from cat_results and the url generated.

====================

[on-match]
<FORM ACTION="[area nothing]" METHOD=POST>
<INPUT TYPE=hidden  NAME="mv_action"        VALUE="refresh">
<INPUT TYPE=hidden  NAME="mv_separate_items"  VALUE="0">
<INPUT TYPE=hidden  NAME="mv_click"        VALUE="munge_quantity">
[/on-match]

[search-list]

[item-change 1][condition][item-field category][/condition]
                    <table width="313" border="0" cellspacing="0"
cellpadding="0
" bgcolor="#FF9900">
                        <tr><td>&nbsp;</td></tr>
                    </table>
                    <table width="313" border="0" cellspacing="0"
cellpadding="0
" bgcolor="#FFFFFF">
                        <tr><td>[if-item-field image]<IMG
SRC="items/[item-field
 image]" ALT="[item-field title]" BORDER=0>[/if-item-field]</td>
                            <td valign="top">[item-field
comment]</td></tr>
                    </table>

                    <table width="313" border="1" cellspacing="0"
cellpadding="0
" bordercolor="#669999">
                      <tr bgcolor="#FFFFFF" valign="middle">
                        <td>
                            <table border="0" cellspacing="2"
cellpadding="3" bo
rdercolor="#FFFFFF" align="center" width="100%">
                              <tr>
                        <td width="80" align="center"
bgcolor="#669999"><font __
FFACE__ size="1" color="#FFFFFF">Product</font></td>
                        <td width="30" align="center"
bgcolor="#669999"><font __
FFACE__ size="1" color="#FFFFFF">Sku</font></td>
                        <td width="50" align="center"
bgcolor="#669999"><font __
FFACE__ size="1" color="#FFFFFF">Price</font></td>
                        <td width="20" align="center"
bgcolor="#669999"><font __
FFACE__ size="1" color="#FFFFFF">Qty</font></td>
                        <td width="30" align="center"
bgcolor="#669999"><font __
FFACE__ size="1" color="#FFFFFF">Buy</font></td>

                      </tr>
                                          </table>
                                        </td></tr>
                    </table>

[/item-change 1]

                    <table width="313" border="1" cellspacing="0"
cellpadding="0
" bordercolor="#669999">
                      <tr bgcolor="#FFFFFF" valign="middle">
                        <td align=center height="5">
                          <div align="left">
                            <table border="0" cellspacing="0"
cellpadding="3" bo
rdercolor="#FFFFFF" align="center" width="100%">

<INPUT TYPE=hidden  NAME="mv_order_item"  VALUE="[item-code]">


                              <tr>
                                <td valign="top" width="90"><a
href="[area [item
-code]]"><font __FFACE__ size="1"><b>[item-field
title]</b></font></a></td>
                                                                <td
valign="top"
 width="30" align="right"><font __FFACE__
size="1">[item-code]</font></td>
                                                                <td
valign="top"
 width="30" align="center">[item-calc]
[/item-calc]</td>
                                                                <td
valign="top"
 width="30"><font __FFACE__ size="1">[item-price]</font></td>
                                                                <td
valign=top w
idth=30><input type=hidden name="mv_oi[item-increment]" value=""><input
type=tex
t name=mv_order_quantity size=2 value="1"></td>
                                                                <td
valign=top w
idth=30><FONT __FFACE__ size=2><input type=submit value=Buy
onClick="this.form.m
v_oi[item-increment].value='[item-code]'"></font></td>



                              </tr>
                            </table>
                            <div align="center"><b><i></i></b></div>
                          </div>
                        </td>
                      </tr>
                    </table>

[/search-list]
[on-match]
<div align=right><INPUT TYPE=submit VALUE="Buy All"></div>
</FORM>
[/on-match]

=========================

http://webdb.edatatranslators.com/cgi-bin/flcitrus/scan/se=8 Month
Club/sf=category/tf=price/em=yes/co=yes/sp=cat_results.html?mv_session_id=FTBBhNXb&mv_nextpage=cat_results&mv_username=

Paul