Hi everyone,
I am really needing some advice, I am not too sure if Java would be suitable for this purpose but I can ask for free….
I have a shopping cart system; its front end is a HTML form. The form needs to calculate the transfer of umatic video tapes.
I have tried using HTML, and asked for some advice on using Java but from talking to people it seems PHP maybe the better option, here what I need to do, if anyone can help me or suggest any code I can use I would be extremely grateful!
Although please bare in mind my knowledge of PHP is extremely limited so I throw my self at your mercy.
The form has to:
Ask how many hours the client will be sending and charge per hour (I can do this using the shopping cart)
Ask which formats they are sending and how many tapes (again I do this using option from my cart)
Ask for additional copies, this is the problem mainly. The user must input how many hours they require, this is then charged per hour. This bits fine, however the form must offer additional copies, I can add additional copies via another text field input, the problem is a user can input as many hours of footage to transfer as they like, and my problem is a tape can only hold two hours.
The additional copies field has to take this into account.
For example they order an 8 hour transfer and want one set of additional copies, I charge $10 for example per additional copy, the trouble is I have to charge £10 per tape, hence 2s into 8 go 4 times I would have to charge $40, opposed to $10.
Any one got any ideas how I can do this using PHP? Will arrays work for this, and if so how? Then would it be possible to send the results to my shopping cart or out put them as a button that carriers the overla cost with it, am i barking up the wrong tree or what?
Many thanks for your time.