[FX.php List] Submitting multiple values as hidden

Michael Ward headhoncho at customikesolutions.com
Sun Apr 29 22:58:46 MDT 2007


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




-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20070430/473de296/attachment.html


More information about the FX.php_List mailing list