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

Stefan Hornburg Racke interchange-users@interchange.redhat.com
Tue Aug 28 05:27:01 2001


Joachim Leidinger <jojo@blackpoint.de> writes:

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

Why ? I think the stock features of IC are sufficient. Furthermore
you can use the "formel" tag to save some typing.

Ciao
        Racke

-- 
Racke happily hacks Interchange and maintains Debian packages like Courier.

For projects and other business stuff please refer to COBOLT NetServices
(URL: http://www.cobolt.net; Email: info@cobolt.net; Phone: 0041-1-3884400)