[ic] Multi-Page Checkout Form Help

Cameron interchange-users@icdevgroup.org
Sun Jul 14 06:19:00 2002


I'm applying the method Paul Jordan posted last weekend to my own 
checkout pages designed around the foundation demo.  What I've done is 
taken the standard foundation cart page (basket.html) and rather than 
strore the cart display in a seperate component, I've added it all to 
basket.html.  The design of the form is to allow the user to either hit 
"Update Order" which will update all the users changes to quantity and 
option, or select "Check Out" which should take them to the next step in 
the checkout process, a page called checkarea.html.

This seems fairly straightforward, but I'm unable to get the buttons to 
do what I want them to do.  One limitation I have is that I don't want 
to use the button tag, reason being that I have some code in the input 
tags such as class and onFocus/onMouseOver that I don't believe the 
button tag can suuport.  Here is the form code from my page.

Feel free to take a look at my site 
(http://toknowaveil.com/~toknowav/cgi-bin/cart.cgi/index.html) the order 
page looks great, now I just need to make it work :)
Any help would be greatly appreciated,
Cameron

<form action="[process-target secure=1]" method="post" name="basket">
<input type="hidden" name="mv_session_id" value="[data session id]">
<input type="hidden" name="mv_doit" value="refresh">
<input type="hidden" name="mv_nextpage" value="index">

<table>
<snip> a bunch of html displaying items</snip>

<input type="text" class="inputbox" name="[quantity-name]" 
value="[item-quantity]" size="2"> //code to edit quantity

<snip>more html</snip>

<input type="submit" name="mv_click" value="Update Order" 
class="button">//update button

<input type="hidden" name="mv_nextpage" value="ord/checkarea">
<input type="submit" name="mv_click" value="Check Out" 
class="button">//checkout button.  If mv_nextpage tag is included, it 
works properly.

</table>
</form>