Security through obscurity is not a solution. Fortunately, if you use the CakePHP Security component, you need not worry about form manipulation, sql injection, and all other forms of nasties. I really do encourage you to use the Security component for what you need.
That said, you can achieve the result you want. Essentially you would hash the fields, and store them in key value pais against the model / field name for the form. Store that data in the session, or something.. and read it back out after form submission. You would then need to populate an array off the real model named and field named from the submitted hashes. Because I feel this is not a great idea, I'll leave implementation up to you :) But as I say, you're far better off and gain greater security benefits through using the Security component. Documentation here: http://book.cakephp.org/view/1296/Security-Component Cheers, Graham Weldon (AKA: Predominant) On Mar 14, 6:45 pm, arron <w...@wwisinc.com> wrote: > I have a form > > <?= $form->create(info );?> > <?= $form->input('FirstOwner.fname');?> > <?= $form->input('FirstOwner.lname');?> > <?= $form->input('FirstOwner.first_owner_title');?> > <?= $form->input('FirstOwner.first_owner_precentage');?> > <?= $form->input('FirstOwner.first_home_address');?> > <?= $form->input('FirstOwner.first_owner_city');?> > <?= $form->input('FirstOwner.first_owner_state');?> > <?= $form->input('FirstOwner.first_owner_zip');?> > <?= $form->end(); ?> > > The html output is > > <div class="input text"><label for="FirstOwnerFname">Fname</ > label><input name="data[FirstOwner][fname]" type="text" > maxlength="255" value="" id="FirstOwnerFname" /></div> <div > class="input text"><label for="FirstOwnerLname">Lname</label><input > name="data[FirstOwner][lname]" type="text" maxlength="255" value="" > id="FirstOwnerLname" /></div> > > how can i obfuscate/hash the id name and id? > > I want it to produces something like > > <div class="input text"><label for="FirstOwnerFname">Fname</ > label><input name="5sdf65sf6g56asdf56as" type="text" maxlength="255" > value="" id="asd45a5sd4a5sd45ad" / -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php