PDA

View Full Version : Order Form Coding


trevorwilson
03-13-2006, 03:48 PM
I need advice about creating an order form (I was sent here from the General Web Building forum!) and I have been told that JavaScript is the way to go - can anybody help with the following (I know nothing about Javascript really).

I have an order form and plan to have the data emailed to me (I have FormMail script installed on my server). The form will have the following fields:

Reference Number
Size / Cost
Quantity
Grand Total

Clients will enter the ref no., choose a size/ cost (radio-button), and quantity (text box). I plan to accept details for about different items. I just want the total cost to be displayed in a box at the bottom before the form data is sent to me.

Can anybody point me in the right direction of how I might go about this? Tutorials / sample code etc.

Thanks very much!

vwphillips
03-13-2006, 05:54 PM
you could look at

http://www.vicsjavascripts.org,uk/FormCompendium/FormCompendium.htm#f3 (http://www.vicsjavascripts.org.uk/FormCompendium/FormCompendium.htm#f3)

trevorwilson
03-13-2006, 06:53 PM
thanks, your code is probably very useful in the right hands but I am afraid I don't understand it exactly. I think I will stick to my day job and get a programmer to do this for me!

vwphillips
03-13-2006, 09:11 PM
see http://www.vicsjavascripts.org.uk/Demos/060313.htm

this is for free but I do accept paypal:)

vwphillips
03-13-2006, 09:53 PM
see http://www.vicsjavascripts.org.uk/Demos/060313.htm

this is for free but I do accept paypal:)

trevorwilson
03-14-2006, 10:23 AM
Thanks very much Vic, I will give it a go and let you know how I get on!

Really appreciate your help!

vwphillips
03-14-2006, 09:35 PM
added conditionals, draft only

http://www.vicsjavascripts.org.uk/Demos/060314.htm

startbar
03-25-2006, 12:51 AM
i need a similar thing but your demo doesnt work for me mate?

edit - works in IE but not firefox

vwphillips
03-25-2006, 08:30 AM
tested with moz ff pc xp
works fine