Hello I am in desperate need of some help. I'm building a dvd store website and I want to add a javascript component. A form that uses javascript and submits form data (ie shopping cart information) to a processing script.
The form must submit using the post method and have the following properties:
A visible unit price to 2 decimal places for the product or service
A hidden form field where a product code for this item is stored (can be "p1" for example)
A quantity field allowing only a positive integer which represents the number of items being ordered.
A customer can enter the amount directly
A minus(*)and a plus(+)button that updates the quantity field by1unit
A submit button (can be called "Add" or "Buy" etc)
The form won't submit if the quantity field is not a positive integer.
I have no idea how to even start this so if anyone can help me that would be fantastic. Cheers.
The form must submit using the post method and have the following properties:
A visible unit price to 2 decimal places for the product or service
A hidden form field where a product code for this item is stored (can be "p1" for example)
A quantity field allowing only a positive integer which represents the number of items being ordered.
A customer can enter the amount directly
A minus(*)and a plus(+)button that updates the quantity field by1unit
A submit button (can be called "Add" or "Buy" etc)
The form won't submit if the quantity field is not a positive integer.
I have no idea how to even start this so if anyone can help me that would be fantastic. Cheers.