[ic] Any problems with this small hunk of code?

Brian J. Miller brian at endpoint.com
Thu Sep 29 00:00:20 EDT 2005

DB wrote:
> The following code seems to work ok within a loop on a page I named
> items_list.html, the goal being to add a part to the cart and return to
> the same page. I'm just wondering if there are any glaring problems with
> doing things this way. Any thoughts welcome.
>     <form action="[process-target]" method="POST">
>     <input type="hidden" name="mv_session_id" value="[data session id]">
>     <input type="hidden" name="mv_todo" value="refresh">
>     <input type="hidden" name="mv_nextpage" value="ites_list">

I am assuming the above should read "items_list" instead of "ites_list"
based on the name in your text. An easy way to avoid this issue if you
are going to submit back to the same page is to use an IC "built-in"

<input type="hidden" name="mv_nextpage" value="@@MV_PAGE@@">

Should give you the same thing and is more portable.

Brian J. Miller
End Point, Corp.

>     <input type="hidden" name="mv_order_item" value="[loop-code]">
>     <input type="text" name="mv_order_quantity" value="1" size="3">
>     <input type="submit" value="[L]Add to cart[/L]">
>     </form>
> DB
> _______________________________________________
> interchange-users mailing list
> interchange-users at icdevgroup.org
> http://www.icdevgroup.org/mailman/listinfo/interchange-users

More information about the interchange-users mailing list