OK its working now again a mess I made on my computer.
On May 24, 9:20 pm, "John David Anderson (_psychic_)"
<[EMAIL PROTECTED]> wrote:
> On May 24, 2007, at 12:50 PM, Ita wrote:
>
>
>
> > Oh man,
> > That was painful.
> > I was hoping that my mistake was bigger than that.
> > Thanks for pointing out my stupidity...
> > you saved me a bunch of time
>
> I'm just wondering how you verified the enctype when the tag wasn't
> there. :)
>
> - John
>
>
>
> > On May 24, 9:30 pm, "Samuel DeVore" <[EMAIL PROTECTED]> wrote:
> >> you need to echo theform->create
>
> >> On 5/24/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> >>> Hi,
> >>> I'm new to CakePHP but I have followed the blog tutorial and now
> >>> trying to devlop something on my own using cake 1.2.
>
> >>> I have the following template to add a user to the system:
> >>> <h1>Add User</h1>
>
> >>> <?php $form->create('User',array('action'=>'/users/add'))?>
> >>> <p>
> >>> <?php echo $form->input('User/user_name', array('size' =>
> >>> '40'))?>
> >>> <?php echo $form->error('User/user_name', 'Username is
> >>> required.') ?>
> >>> </p>
> >>> <p>
> >>> <?php echo $form->input('User/password', array
> >>> ('size'=>'10')) ?
>
> >>> <?php echo $form->error('User/password', 'Password is
> >>> required.') ?>
> >>> </p>
> >>> <p>
> >>> <?php echo $form->input('User/email', array
> >>> ('size'=>'50')) ?>
> >>> <?php echo $form->error('User/email', 'eMail is
> >>> required.') ?>
> >>> <p>
> >>> <?php echo $form->submit('Save') ?>
> >>> </p>
> >>> <?php $form->end('User')?>
>
> >>> I have addedFormhelper to the users_controller.php file so I don't
> >>> get an error about $formnot being recognized.
> >>> When I call the template theformcontrol appear but there is no
> >>>form
> >>> tag like so:
> >>> <h1>Add User</h1>
> >>> <p>
> >>> <div class="input required"><label for="UserUserName">User
> >>> Name</label><input name="data[User][user_name]" type="text"
> >>> size="40"
> >>> maxlength="255" value="" id="UserUserName" /></div> </p>
>
> >>> <p>
> >>> <div class="input required"><label
> >>> for="UserPassword">Password</label><input type="password"
> >>> name="data[User][password]" size="10" value="" id="UserPassword" /
> >>> ></
> >>> div> </p>
> >>> <p>
> >>> <div class="input required"><label for="UserEmail">Email</
> >>> label><input name="data[User][email]" type="text" size="50"
> >>> maxlength="100" value="" id="UserEmail" /></div> <p>
> >>> <div class="submit"><input type="submit" value="Save" /></
> >>> div> </p>
>
> >>> Anyone knows what am I doing wrong?
>
> >> --
> >> (the old fart) the advice is free, the lack of crankiness will
> >> cost you
>
> >> - its a fine line between a real question and an idiot
>
> >>http://blog.samdevore.com/archives/2007/03/05/when-open-source-
> >> bugs-me/
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---