Re: [PHP] date part

2002-12-19 Thread Rick Emery
Following on to the L T: $ar = explode("/",$thestring); thenL $ar[0] = 06 $ar[1] = 07 $ar[2] = 200 - Original Message - From: "John W. Holmes" <[EMAIL PROTECTED]> To: "'Diana Castillo'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Se

RE: [PHP] date part

2002-12-19 Thread John W. Holmes
> How can I get a string containing the month part of a date the user types > in? > e.g. if they type in "06/07/200" I want to get "06" If you know that's the format they're going to use, the you can just use substr() to grab the first two characters. ---John W. Holmes... PHP Architect - A month

RE: [PHP] date part

2002-12-19 Thread Adam Voigt
ard Peloke [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 19, 2002 10:11 AM To: [EMAIL PROTECTED] Subject: RE: [PHP] date part Thanks Allan! That is good to know. It is just a script that I downloaded from the internet. Not sure how to ma

RE: [PHP] date part

2002-12-19 Thread Edward Peloke
Sorry ADAM, didn't mean to call you Allan, I apologize! -Original Message- From: Edward Peloke [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 19, 2002 10:11 AM To: [EMAIL PROTECTED] Subject: RE: [PHP] date part Thanks Allan! That is good to know. It is just a script t

RE: [PHP] date part

2002-12-19 Thread Edward Peloke
, December 19, 2002 9:38 AM To: Edward Peloke Cc: Diana Castillo; [EMAIL PROTECTED] Subject: RE: [PHP] date part I just tried that script, for me under Linux with Mozilla and Netscape, I had to try 5 times before I could move the mouse from the button to the menu fast enough, every other time

RE: [PHP] date part

2002-12-19 Thread Adam Voigt
I just tried that script, for me under Linux with Mozilla and Netscape, I had to try 5 times before I could move the mouse from the button to the menu fast enough, every other time it would just disappear when I tried to move the mouse from the button to it. On Thu, 2002-12-19 at 09:59, Edwa

RE: [PHP] date part

2002-12-19 Thread Edward Peloke
I used a javascript I found online in my php page. Click on the boxes next to the date fields: http://www.aircharterunited.com/pages/submit_bid.php This way, I know the format of the date when it is entered and I can pull out any part needed. Eddie -Original Message- From: Diana Castill

RE: [PHP] date part[Scanned]

2002-12-19 Thread Michael Egan
You could use the explode function to break the string down into its different elements with '/' as the delimiter. Problem is if you're allowing users to input the date into a text box you can't be sure how they'll enter the data. The better option is probably to constrain what they can enter