[FX.php List] Submitting multiple values as hidden
Steve Bennett
steve at bentechaps.com
Mon Apr 30 10:10:34 MDT 2007
Thanks Michael,
I had started to head in this direction but was certainly heading
down the long path to unix time so the strtotime() function will work
nicely.
Steve
On Apr 29, 2007, at 10:58 PM, Michael Ward wrote:
> Hi Steve,
>
> try this:
>
> if (date("l",strtotime($_POST["date"]))=="Sunday" {/* Pass */ }
> else { /* Fail */ }
>
>
> On 30/04/2007, at 1:50 PM, Steve Bennett wrote:
>
>> Thanks Tom,
>>
>> I don't think that it likes my date format as I get an error "non
>> well formed numeric value encountered" and it thinks that
>> 4/29/2007 is a Wednesday not Sunday.
>>
>> This gives me a good starting point though.
>>
>> Steve
>>
>> On Apr 29, 2007, at 8:58 PM, Tom Sepper wrote:
>>
>>> Validating the date is easy:
>>>
>>> if(date("l",$_POST["date"])=="Sunday") { /* Pass */ }
>>> else { /* Fail */ }
>>>
>>> That's a lowercase L in the date() function.
>>
>
> Regards
>
> Michael Ward
> --
> Head Honcho
> CustoMike Solutions
> Associate, Filemaker Solutions Alliance
> FileMaker 7 Certified Developer
> FileMaker 8 Certified Developer
> 10 Wandoo Crt
> Wheelers Hill, 3150
> ph 0414 562 501
> headhoncho at customikesolutions.com
>
>
>
>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
More information about the FX.php_List
mailing list