[FX.php List] Submitting multiple values as hidden

Steve Bennett steve at bentechaps.com
Sun Apr 29 21:50:22 MDT 2007


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.
>
>
> Tom Sepper
> Director of Information Technology
> Director's Choice Tour & Travel
>
> P 806.762.6354
> F 806.763.7637
>
> tsepper at directorschoice.travel
> www.directorschoicetourandtravel.com
>
>
>
> -----Original Message-----
> From: fx.php_list-bounces at mail.iviking.org on behalf of Steve Bennett
> Sent: Sun 4/29/2007 5:33 PM
> To: FX.php Discussion List
> Subject: Re: [FX.php List] Submitting multiple values as hidden
>
> Not sure what changed but I just reopened the pages to echo the
> $_POST and they worked fine?
>
> There does not seem to be an issue with with the forms having the
> same ID as they seem to be picking up the correct dates entered and
> other hidden ID values.
>
> Thanks for the reply just wish I knew why it didn't work before now I
> can move on to figuring out how to validate that the mm/dd/yyyy date
> that the user enters in the form is a Sunday.
>
> Thanks,
>
> Steve
>
> On Apr 29, 2007, at 4:15 PM, Erik Andreas Cayré wrote:
>
>>
>> Den 30/04/2007 kl. 4.21 skrev Steve Bennett:
>>
>>>   <?php foreach($search_results_result['data'] as
>>> $search_results_row_key=>$search_results_row){ ?>
>>>   <form action="../timesheets/ts_add.php" method="post"
>>> name="new_timesheet" id="new_timesheet">
>>
>> It seems you are creating several forms with the same name and id...
>> How do you discern which of them was submitted?
>>
>> Try to echo the contents of the $_POST on the processing page to
>> see what you are getting...
>>
>> ---
>> Erik Andreas Cayré
>> Spangsbjerg Møllevej 169
>> 6705 Esbjerg Ø
>>
>> Privat Tel: 75150512
>> Mobil: 40161183
>>
>> ---
>> »Interesse kan skabe læring på en skala sammenlignet med frygt, som
>> en nuklear eksplosion i forhold til en kineser.«
>> --Stanley Kubrick
>>
>> »Kun p....sure mennesker kan ændre verden. Innovation skabes ikke
>> af 'markedsanalyse', men af folk, der er afsindigt irriterede over
>> tingenes tilstand «
>> --Tom Peters
>>
>> »Hvis du ikke kan forklare det simpelt, forstår  du det ikke godt
>> nok.«
>> -- Albert Einstein
>>
>> »Hvis du ikke har tid til at gøre det rigtigt, hvornår vil du så
>> have tid til at lave det om?«
>> -- John Wooden, basketball coach
>>
>>
>> _______________________________________________
>> FX.php_List mailing list
>> FX.php_List at mail.iviking.org
>> http://www.iviking.org/mailman/listinfo/fx.php_list
>>
>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
>
>
> <winmail.dat>
> _______________________________________________
> 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