Hmm, okay. Thanks :) I'll take a look at it.
But, i'd expect a normal form to send me to: localhost/cakephp/users/
register/users/register since the form is places at localhost/cakephp/
users/register...


On 28 Maj, 17:42, clemos <[EMAIL PROTECTED]> wrote:
> Hi Rasmus
>
> You need to use the $form->create() method to generate your <form> tag
> (details depend on the Cake version you use, but it's all clearly
> documented in the api). The generated tag will automatically add the
> cake base before and this action to "/cakephp/users/register"...
> Otherwise, the form obviously acts as all forms : it posts to
> "/users/register", which is the same than
> "http://localhost/users/register";.
>
> +++++
> Clément
>
> On Wed, May 28, 2008 at 5:36 PM, Ralle <[EMAIL PROTECTED]> wrote:
>
> > contents of htdocs\cakephp\app\views\users\register.thtml:
>
> > <form action="/users/register" method="post">
> >  <p>Please fill out the form below to register an account</p>
> >  <label>Username:</label>
> >  <?php echo $html->inputTag('User/username', array('size' =>
> > '40' )); ?>
> >  <?php echo $html->tagErrorMsg('User/username', $username_error); ?>
> >  <label>Password:</label>
> >  <?php echo $html->passwordTag('User/password', array('size' =>
> > '40' )); ?>
> >  <?php echo $html->tagErrorMsg('User/password', 'Password should be
> > between 6 and 40 characters long'); ?>
> >  <label>Email:</label>
> >  <?php echo $html->inputTag('User/email', array('size' => '40',
> > 'maxlength' =>'255' )); ?>
> >  <?php echo $html->tagErrorMsg('User/email', 'Email is invalid'); ?>
> >  <label>First name:</label>
> >  <?php echo $html->inputTag('User/first_name', array('size' =>
> > '40' )); ?>
> >  <?php echo $html->tagErrorMsg('User/first_name', 'First name is
> > required'); ?>
> >  <label>Last name:</label>
> >  <?php echo $html->inputTag('User/last_name', array('size' =>
> > '40' )); ?>
> >  <?php echo $html->tagErrorMsg('User/last_name', 'Last name is
> > required'); ?>
> >  <?php echo $html->submitTag('Register'); ?>
> > </form>
>
> > Cheers, Rasmus
>
> > On 28 Maj, 12:52, AD7six <[EMAIL PROTECTED]> wrote:
> >> On May 28, 11:14 am, "David C. Zentgraf" <[EMAIL PROTECTED]> wrote:
>
> >> > On 28 May 2008, at 16:57, Ralle wrote:
>
> >> > > I have not edited any off the .htaccess files.
>
> >> > Then you should.
>
> >> >http://groups.google.com/group/cake-php/search?hl=en&q=rewritebase&sc...
>
> >> since he can access localhost/cakephp/users/register - that's probably
> >> not relevant.
>
> >> Ralle - show some (view file) code. where is the url form target
> >> coming from.
>
> >> hth,
>
> >> AD
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to