MiniVend Akopia Services

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

Re: Database: can't update database record



******    message to minivend-users from "William Rothbauer" <madpages@madpages.com>     ******

Mike, my apologies for the question on [loop-field column], the answer is
obvious and it is documented.  Sometimes in the process of trying to solve
another problem, I lose site of something as obvious as that.  In fact I
realized how dumb the question was shortly after I pressed the send button
(typical).

All, the real problem I'm having is updating a database with a form.  I'm
using a gdbm database and 3.12beta1.  The form I'm using is once again
listed below.  After clicking through the form, minivend seems to manipulate
the inventory database but it doesn't update the qty column to the value I
input to the form.

Is this form method only for sql?  Do I need to flag the database writable
some how (I've tried without success)?  This seems so straight forward, but
I can't seem to get it to work.

<FORM METHOD=POST ACTION="[process-target]">
<INPUT TYPE=HIDDEN NAME="mv_data_table" VALUE="inventory">
<INPUT TYPE=HIDDEN NAME="mv_data_function" VALUE="update">
<INPUT TYPE=HIDDEN NAME="mv_nextpage" VALUE="status">
<INPUT TYPE=HIDDEN NAME="mv_data_key" VALUE="code">
<INPUT TYPE=HIDDEN NAME="mv_data_fields" VALUE="qty">
<INPUT TYPE=hidden NAME="mv_todo" VALUE="set">

[loop arg="[value update_code]"]
Current Qty <INPUT TYPE=TEXT NAME="qty" SIZE=10 VALUE="[loop-field inventory
qty]">
[/loop]

<INPUT TYPE=submit VALUE="Update table">
</FORM>



-
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: