[ic] table update via form not working as expected

Aaron Hazelton interchange-users@icdevgroup.org
Tue Dec 17 10:42:00 2002


 Thanh Luong wrote:
> 
> I have been trying to update my table via a form. I have followed the
> example in the docs and made my code as close to the docs as I could.
> I have the following code
> 
> [set update_database]
>  [set mv_data_enable]1[/set]
> [/set]

shouldn't this be:

[set update_database]
  [set mv_data_enable]1[/set]
  [tag flag write]car_of_the_week_db[/tag]
[/set]

> 
> <FORM ACTION="[process secure=1]" METHOD="POST">
> <INPUT TYPE=hidden NAME="mv_session_id" VALUE="[data session id]">
> <INPUT TYPE=hidden NAME="mv_click" VALUE="update_database"> 
> <INPUT TYPE=hidden NAME="mv_todo" VALUE="set"> 
> <INPUT TYPE=hidden NAME="mv_nextpage" VALUE="car_of_the_week">
> <INPUT TYPE=HIDDEN NAME="mv_data_table" VALUE="car_of_the_week_db">
> <INPUT TYPE=HIDDEN NAME="mv_data_function" VALUE="update">
> <INPUT TYPE=HIDDEN NAME="mv_data_key" VALUE="code">
> <input type=hidden name="mv_data_fields" value="code,img_back">
> 
> <pre> 
> [loop arg=|
>   fi=car_of_the_week_db
>   sf=code
>   se=10064
>     |]
> <input type=hidden name="img_back" value="tom">
> [/loop]
> </pre>
> <input type=submit>
> </form>
> I have been trying to troubleshoot a larger problem for a 
> while now and
> I this form submission is part of the problem. I use to have variables
> in the form but removed them for debugging and appearently it wasnt my
> variables that did not allow the form to submit to update my table.
> Does anyone have any clues to offer.
> thanks in advance.
> Tom

--
Aaron