Re: [PHP] Need unrounded precision

2009-11-04 Thread Matthew McKay
Kim Madsen wrote: Hello Andre Dubuc wrote on 2010-01-02 02:20: Hi, I need to extract the first digit after the decimal point from a number such as 28.56018, which should be '5'. Since no one came up with the simple solution: $num = "28.56018"; ereg("^[0-9]+\.([0-9]){1}", trim($num), $regs)

Re: [PHP] Directing form to different handlers?

2009-06-01 Thread Matthew McKay
On Mon, Jun 1, 2009 at 2:43 PM, James Ausmus wrote: > On Mon, Jun 1, 2009 at 12:32 PM, Matthew McKay wrote: > > It would be much simpler and cleaner to use Javascript to modify the > form's > > action attribute onClick. > > > > Not really. What about clients

Re: [PHP] Directing form to different handlers?

2009-06-01 Thread Matthew McKay
It would be much simpler and cleaner to use Javascript to modify the form's action attribute onClick. On Mon, Jun 1, 2009 at 2:28 PM, Shawn McKenzie wrote: > Jason Pruim wrote: > > > > On May 31, 2009, at 10:53 PM, Angus Mann wrote: > > > >> Hi all. I realize this is more an HTML question than P