Re: [PHP] Forms & PHP

2003-07-02 Thread Greg Wiley
d in the second form you have: ... Cheers, Greg. -- Greg Wiley www.wileysworld.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Forms & PHP

2003-07-03 Thread Greg Wiley
On Wed, 02 Jul 2003 14:58:39 +0100, Greg Wiley <[EMAIL PROTECTED]> wrote: On Wed, 2 Jul 2003 14:45:27 +0100, Gary Ogilvie <[EMAIL PROTECTED]> wrote: [snip] By maintaining the POST (assuming you're using POST)variables and calling them into the form values when reloaded. If you

Re: [PHP] PCRE regexp bug ?

2003-08-15 Thread Greg Wiley
- Original Message - From: <[EMAIL PROTECTED]> > > I use preg_match to validate the Middle Initial field of a form and so far > it works, except yesterday a user submitted a "0" (zero) as a middle > initial! My regexp is: > > if (!empty($_POST[MI]) && (preg_match('/^[[:alpha:]]{1,1}$/', $

RE: [PHP] How many Mondays in a month?

2003-09-29 Thread Greg Wiley
Funny you should ask this because I've been meaning to share some code that I wrote a few months ago that does exactly this for any day of the week. Please feel free to use this and make changes. I'd appreciate any changes/bug fixes being sent back to me though. "Monday",

RE: [PHP] How many Mondays in a month?

2003-09-29 Thread Greg Wiley
That worked brilliantly... I bow down to your sheer > excellence!!! Thankyou Thankyou Thankyou > > > > "Greg Wiley" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > er.demon.net... > Funny you should ask this because I've been meaning

RE: [PHP] How many Mondays in a month?

2003-09-29 Thread Greg Wiley
> -Original Message- > From: Burhan Khalid [mailto:[EMAIL PROTECTED] > > Greg Wiley wrote: > > Funny you should ask this because I've been meaning to > share some code > > that I wrote a few months ago that does exactly this for > any day of the wee

RE: [PHP] How many Mondays in a month?

2003-09-30 Thread Greg Wiley
it's not a "page" in itself. I use it in a form that display checkboxes for each Sunday in a month. Someone else may use it by providing the arguments via a form in the manner you suggest. The function, however, is just that, a function. Cheers, Greg. -

RE: [PHP] Form Actions

2003-09-30 Thread Greg Wiley
ue using other variables. Cheers, Greg. -- Greg Wiley http://wileysworld.org/ Mail was checked for spam by the Freeware Edition of No Spam Today! The Freeware Edition is free for personal and non-commercial use. You can remove this notice

[PHP] Date Sorting

2003-10-01 Thread Greg Wiley
do this in the php code that processes the submission. There is no year info such that I could turn the dates into timestamp and sort that way. Has anyone got any code that can sort this correctly? Cheers, Greg. -- Greg Wiley http://wileysworld.org/ -- PHP General Mailing List (http://w

RE: [PHP] Date Sorting

2003-10-01 Thread Greg Wiley
> -Original Message- > From: Jason Wong [mailto:[EMAIL PROTECTED] [problem snipped] > > Incorporate whatever sorting info you need into the value of > the checkbox. > > name="Dec 28 am" > value=""> > Thanks, someone else suggested this and I think this is the met

RE: [PHP] Date Sorting

2003-10-01 Thread Greg Wiley
> -Original Message- > From: Greg Wiley [mailto:[EMAIL PROTECTED] > > > -Original Message- > > From: Jason Wong [mailto:[EMAIL PROTECTED] > [problem snipped] > > > > Incorporate whatever sorting info you need into the value of the > >

Re: [PHP] Find the last friday of each month.

2003-10-26 Thread Greg Wiley
Evan Nemerson wrote: Search for 'doomsday algorithm' on google. Once you grok it, you should be able to figure out the last friday quite easily. On Sunday 26 October 2003 11:37 am, OrangeHairedBoy wrote: Hi all, I'm trying to write a script to get the next last friday of the month and I am f