Wednesday, August 5, 2009

forms in a element

hey i created a form in a element and add the to my home page for some
reason when i submit it it say Invalid form submission and redirect
me to this '/users/register/' i give to the form any idea
here is what i did

<?php
echo $form->create(null, array('url' => '/users/register/' . $this-
>params['url']['url']));


$out = $form->input('username', array('label' => __('Email *',
true)));
$out .= $form->input('email',array('label' => __('confirm Email*',
true)));
$firstName = $form->input('first_name', array('label' => __('First
Name *', true)), array('fieldset' => false));
echo sprintf($html->tags['fieldset'], '', sprintf($html->tags
['legend'], __('Sign Up', true)) . $out);

echo $form->end('submit');
?>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: