I second marc's suggestion since you will want to calculate the price server-side anyways. You dont want to blindly rely on the price the client sends since someone could change the hidden value to be $1 .