Ok got it to write to the database from the controller by hard coding:
$this->Subscription->saveField('month1_mailinginfo_sent', date('Y-m-
d'));
But it added a new blank record with the month filled in...not really
what I wanted but a baby step forward...
How do I post from the php code of the view? Also I will probably
need to POST the id of the record I need to update so when I loop
through in the controller I know what records to update. I have the
record id handy in the code so how to post is what I am not
understanding...
view/process_member.thtml
for ()
{
if ($chkMark=='1')
{
// Mark selected months
if($chkMonth1=='on')
$subscription['Subscription']['month1_mailinginfo_sent']=date
('Y-m-d');
****THIS IS WHERE I NEED TO POST BUT NOT SURE HOW TO DO THAT??
***
}
On Jan 14, 12:49 pm, Miles J <[email protected]> wrote:
> Are you POSTing the data (checked checkboxes) to anywhere? If so loop
> the $this->data array in the controller.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---