Hi I have a controller which makes use of a model
var $uses = array('User','User_posts');
In my controller I have a function called submit which is used for a
form where users can post data to.
looks like this: (I abbreviated it but thats the idea)
function submit()
{
if (!empty($this->User->data))
{
echo "datafrom form received";
$this->set('submitted','true');
}
}
now I have a view under users/submit which has a form in it:
<form id="UserPostsForm" method="post" action="/users/submit"
style="margin:0;" name="UserPostsForm" >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---