Jump to content


exploding string

  • Please log in to reply
No replies to this topic

#1 mjh

  • Members
  • Pip
  • Newbie
  • 3 posts

Posted 18 April 2006 - 01:17 PM

I could really use some guidance here with PHP and maybe Javascript (sorry).

I want to get the number of mins (eg 115) from a time formatted 01:55:00 (for 1 hour 55 mins duration)

I have used Explode before in PHP to get the 'bits' and then do the math.

HOWEVER, this time i want to show the answer as the user 'tabs' down the form, this sort of thing:

Distance [textbox] miles
Duration [textbox] 00:00:00 format
Pace [textbox] calced pace in mins per miles

I guess this is turning into a Javascript question (sorry)


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users