[ic] order multiple items once a time with a form page

Joachim Leidinger interchange-users@interchange.redhat.com
Mon Aug 27 17:24:01 2001


Hi List,

I've a page like

<FORM ACTION="[process-target]" METHOD=POST>
<INPUT TYPE="hidden" NAME="mv_todo"      VALUE="refresh">
<INPUT TYPE="hidden" NAME="mv_nextpage"  VALUE="ord/warenkorb_anzeige">
<INPUT TYPE="hidden" NAME="mv_orderpage" VALUE="ord/warenkorb_anzeige">
<INPUT TYPE="hidden" NAME="mv_session_id" VALUE="[data session id]">
<INPUT TYPE=hidden  NAME="mv_click"        VALUE="munge_quantity">
...
<input type=hidden name="mv_oi1" value=""><INPUT TYPE="text"
NAME="mv_order_quantity" SIZE=3 VALUE="">
... up to
<input type=hidden name="mv_oi32" value=""><INPUT TYPE="text"
NAME="mv_order_quantity" SIZE=3 VALUE="">
...
<INPUT TYPE="submit" VALUE="Bestellen">

It works fine until an user make a typo. I've 32 input field. If an user
choose 2 items and the one sku of the one item is wrong, I get 31 lines
in my error.log like

192.168.3.1 2XYgZ6nI:192.168.3.1 - [27/August/2001:23:06:28 +0200] intos
/cgi-bin/intos/process.html Attempt to order missing product code:
654654
192.168.3.1 2XYgZ6nI:192.168.3.1 - [27/August/2001:23:06:28 +0200] intos
/cgi-bin/intos/process.html Attempt to order missing product code: 
[DEL 30 other same lines like above.

How can I prevent it? I know, there are a solution to check for an
existing items and I can write this kind of check. But I believe and
think, it is a big feature, if IC are able to check for an existing
items, go back to that page and make the line with the wrong field red
by error or report the user about the error. Hmmm...maybe a new IC Tag
like [if session ordererror] ...[/if] to print out for example "SKU 1234
is not available" is the fastest new implementation? Any suggestions?

Any hints, helps and suggestions for the quick solutions are very
welcome!

Thanks!

Joachim

 



-- 
Hans-Joachim Leidinger | Dipl.-Phys.Ing. Entwicklung eCommerce
[Hans-Joachim.leidinger@bpanet.de]
Black Point Arts Internet Solutions GmbH
http://www.bpanet.de