I have just learned php last 3 days ago. and I have developers exam. I hope you can help me out guys with this test.
here's the exam
In our CSC shopping cart we have product setup pages. In these product setup pages I have entered a “minimum quantity” for every product. This number represents not only the minimum amount that a customer can purchase of that particular item but also the increments in which this product can be purchased. For example, if the minimum quantity is 100, then the customer can only purchase that item in increments of 100. CS-Cart allows for incremental purchases, but you have to fill in another field called the “quantity step”. Once you fill in this field, our “add to cart” text box turns into a drop-down list of the specified increments (i.e. 100, 200, 300, etc.). We do not want a drop down list, we want a text box that will only allow the specified increments to be added to the cart.
I would like the applicant to write a php script that will keep the “add to cart” as a text box, but will jump in increments of the “minimum quantity”. For example, if the minimum quantity is 100 and the customer enters 5 in the text box, then 100 items will be added to the cart, if they enter 101, 200 will added to the cart.
hope you can help me out . i dont know where to start.thanks