Calculate days from a start and stop date in a form - please
Posted: Wed Jan 05, 2005 3:00 pm
HI I have two small (I think
problems with a little form I am trying to make. I have this form where you choose a start date and End date and after this I want to calculate the numbers of day and then multiply this with 500 to get a price. This works in one off my exmples when I only use one text field for the complete date-month-year but I woukd like to have a drop down field for date-month and year and I can't get this to work.
I also would like to calculate and show the result price after choocing the end date becaurse this is just part of the form where name adress and so on is also missing.
I have an example that works but with only one text field for all (missing the show price when end is inserted)
http://www.designfremtiden.dk/freaks/trut1.php
And I have one example with the 3 fields as I want them.
http://www.designfremtiden.dk/freaks/trut2.php
Could anyone give me some hint to where I go from here
Thanks ever so much
Lars Gravesen
I also would like to calculate and show the result price after choocing the end date becaurse this is just part of the form where name adress and so on is also missing.
I have an example that works but with only one text field for all (missing the show price when end is inserted)
http://www.designfremtiden.dk/freaks/trut1.php
And I have one example with the 3 fields as I want them.
http://www.designfremtiden.dk/freaks/trut2.php
Could anyone give me some hint to where I go from here
Thanks ever so much
Lars Gravesen