| 1:08 am on Sep 22, 2008 (gmt 0)|
I am not sure what Magento does in this regard; do feel free to post back your results.
| 1:56 am on Sep 22, 2008 (gmt 0)|
| 2:39 am on Sep 22, 2008 (gmt 0)|
| 4:09 am on Sep 22, 2008 (gmt 0)|
<form method="POST" action="addtocart">
<input type="text" name="quantity" value="1">
<input type="hidden" name="product" value="widget">
The function 'validation()' should return 'true' on success; and 'false' on failure (along with visual feedback about the problem).