Community Forums 

Main Content

Re:Quantities changed by Shopper...hmmmm???

    Feb 01 2009 19:58:09



    Join date : 2009-01-30      Posts : 2

    Hello anon,

    I tried your solution, but cant make it work. Maybe you could spell it out some more. I have done the following to my form:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

    <script type='text/javascript'>
    function validate_qty(qty) {
    if(qty%1 != 0) {
    alert('Quantity must be a whole number');
    return false;


    <form action=""; method="post">
    <input type="hidden" name="return" value="www.webl/" />
    <input type="hidden" name="userid" value="Exxxxx" />
    <input name="product" type="hidden" value="things">
    <input name="price" type="hidden" value="money">
    onsubmit='return validate_qty(this.qty.value);'


    I guess the onsumit thingy is placed/used totally wrong, but i cant sort it out how it should work. Can you give me the proper syntax?